DbSpatialServices.GetExteriorRing Method (DbGeometry)
Returns a DbGeometry value that represents the exterior ring of the given DbGeometry value, which may be null if the value does not represent a polygon.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value, which need not represent a polygon.
Return Value
Type: System.Data.Entity.Spatial.DbGeometryA DbGeometry value representing the exterior ring on geometryValue, if it represents a polygon; otherwise, null.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |