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.

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

NameDescription
System_CAPS_pubmethodGetArea(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.

System_CAPS_pubmethodGetArea(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.

public abstract Nullable<double> GetArea(
	DbGeography geographyValue
)

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.

public abstract Nullable<double> GetArea(
	DbGeometry geometryValue
)

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.