DbSpatialServices.Buffer Method

 

Creates a value representing all points.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodBuffer(DbGeography, Double)

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

System_CAPS_pubmethodBuffer(DbGeometry, Double)

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


DbSpatialServices.Buffer Method (DbGeography, Double)

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

public abstract DbGeography Buffer(
	DbGeography geographyValue,
	double distance
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value.

distance
Type: System.Double

A double value specifying how far from geographyValue to buffer.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

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

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.Buffer Method (DbGeometry, Double)

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

public abstract DbGeometry Buffer(
	DbGeometry geometryValue,
	double distance
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value.

distance
Type: System.Double

A double value specifying how far from geometryValue to buffer.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

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

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.