DbSpatialServices.GetEnvelope Method (DbGeometry)

 

Gets the envelope (minimum bounding box) of the given DbGeometry value, as a geometry value.

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

public abstract DbGeometry GetEnvelope(
	DbGeometry geometryValue
)

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.DbGeometry

The envelope of geometryValue, as a DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.