DbSpatialServices.Buffer Method (DbGeography, Double)

.NET Framework (current version)
 

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

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

public abstract DbGeography Buffer(
	DbGeography geographyValue,
	double distance
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value.

distance
Type: System.Double

A double value specifying how far from geographyValue to buffer.

Return Value

Type: System.Data.Spatial.DbGeography

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

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: