Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbSpatialServices.GetElevation Method (DbGeography)

.NET Framework 4.6 and 4.5

Returns the elevation (Z coordinate) of the given DbGeography value, if it represents a point.

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

public abstract Nullable<double> GetElevation(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value, which need not represent a point.

Return Value

Type: System.Nullable<Double>
The elevation (Z coordinate) of geographyValue, if it represents a point; otherwise null.

ExceptionCondition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft