DbSpatialServices.GetEnvelope Method (DbGeometry)
Gets the envelope (minimum bounding box) of the given DbGeometry value, as a geometry value.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value for which the envelope value should be retrieved.
Return Value
Type: System.Data.Entity.Spatial.DbGeometryThe envelope of geometryValue, as a DbGeometry value.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |