Redigera

Dela via


DbSpatialServices.GetDimension Method

Definition

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

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::Spatial::DbGeography ^ geographyValue);
public abstract int GetDimension (System.Data.Spatial.DbGeography geographyValue);
abstract member GetDimension : System.Data.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

geographyValue

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::Spatial::DbGeometry ^ geometryValue);
public abstract int GetDimension (System.Data.Spatial.DbGeometry geometryValue);
abstract member GetDimension : System.Data.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.

Exceptions

geometryValue

geometryValue

Applies to