Share via


DbSpatialServices.Buffer Method

Definition

Overloads

Buffer(DbGeography, Double)

Creates a geography value representing all points less than or equal to distance from the given DbGeography value.

Buffer(DbGeometry, Double)

Creates a geometry value representing all points less than or equal to distance from the given DbGeometry value.

Buffer(DbGeography, Double)

Creates a geography value representing all points less than or equal to distance from the given DbGeography value.

public abstract System.Data.Entity.Spatial.DbGeography Buffer (System.Data.Entity.Spatial.DbGeography geographyValue, double distance);
abstract member Buffer : System.Data.Entity.Spatial.DbGeography * double -> System.Data.Entity.Spatial.DbGeography
Public MustOverride Function Buffer (geographyValue As DbGeography, distance As Double) As DbGeography

Parameters

geographyValue
DbGeography

The geography value.

distance
Double

A double value specifying how far from geographyValue to buffer.

Returns

A new DbGeography value representing all points less than or equal to distance from geographyValue.

Exceptions

geographyValue is null.

geographyValue is not compatible with this spatial services implementation.

Applies to

Buffer(DbGeometry, Double)

Creates a geometry value representing all points less than or equal to distance from the given DbGeometry value.

public abstract System.Data.Entity.Spatial.DbGeometry Buffer (System.Data.Entity.Spatial.DbGeometry geometryValue, double distance);
abstract member Buffer : System.Data.Entity.Spatial.DbGeometry * double -> System.Data.Entity.Spatial.DbGeometry
Public MustOverride Function Buffer (geometryValue As DbGeometry, distance As Double) As DbGeometry

Parameters

geometryValue
DbGeometry

The geometry value.

distance
Double

A double value specifying how far from geometryValue to buffer.

Returns

A new DbGeometry value representing all points less than or equal to distance from geometryValue.

Exceptions

geometryValue is null.

geometryValue is not compatible with this spatial services implementation.

Applies to