DbSpatialServices.GetDimension Method

Definition

Overloads

GetDimension(DbGeography)

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

GetDimension(DbGeometry)

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

GetDimension(DbGeography)

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

public abstract int GetDimension (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetDimension : System.Data.Entity.Spatial.DbGeography -> int
Public MustOverride Function GetDimension (geographyValue As DbGeography) As Integer

Parameters

geographyValue
DbGeography

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

Returns

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

Exceptions

geographyValue is null.

geographyValue is not compatible with this spatial services implementation.

Applies to

GetDimension(DbGeometry)

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

public abstract int GetDimension (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetDimension : System.Data.Entity.Spatial.DbGeometry -> int
Public MustOverride Function GetDimension (geometryValue As DbGeometry) As Integer

Parameters

geometryValue
DbGeometry

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

Returns

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

Applies to