DbSpatialServices.GetArea Method
Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetArea(DbGeography) | Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface. |
![]() | GetArea(DbGeometry) | Returns a nullable double value that indicates the area of the given DbGeometry value, which may be null if the value does not represent a surface. |
DbSpatialServices.GetArea Method (DbGeography)
Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value, which need not represent a surface.
Return Value
Type: System.Nullable<Double>A nullable double value that indicates the area of the given DbGeography value.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |
DbSpatialServices.GetArea Method (DbGeometry)
Returns a nullable double value that indicates the area of the given DbGeometry value, which may be null if the value does not represent a surface.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value, which need not represent a surface.
Return Value
Type: System.Nullable<Double>A nullable double value that indicates the area of the given DbGeometry value.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |