DbSpatialServices.Buffer Method
Creates a value representing all points.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
DbSpatialServices.Buffer Method (DbGeography, Double)
Creates a geography value representing all points less than or equal to distance from the given DbGeography value.
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.DbGeographyA 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.
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.DbGeometryA 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. |