DbSpatialServices.GetDimension Method

 

Gets the dimension of the given value.

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

NameDescription
System_CAPS_pubmethodGetDimension(DbGeography)

Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension.

System_CAPS_pubmethodGetDimension(DbGeometry)

Gets the dimension of the given DbGeometry value or, if the value is a collections, the largest element dimension.


DbSpatialServices.GetDimension Method (DbGeography)

Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension.

public abstract int GetDimension(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value for which the dimension value should be retrieved.

Return Value

Type: System.Int32

The dimension of geographyValue, or the largest element dimension if DbGeography is a collection.

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.GetDimension Method (DbGeometry)

Gets the dimension of the given DbGeometry value or, if the value is a collections, the largest element dimension.

public abstract int GetDimension(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value for which the dimension value should be retrieved.

Return Value

Type: System.Int32

The dimension of geometryValue, or the largest element dimension if DbGeometry is a collection.