DbSpatialServices.GetDimension Method
Gets the dimension of the given value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
DbSpatialServices.GetDimension Method (DbGeography)
Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value for which the dimension value should be retrieved.
Return Value
Type: System.Int32The 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.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value for which the dimension value should be retrieved.
Return Value
Type: System.Int32The dimension of geometryValue, or the largest element dimension if DbGeometry is a collection.