DbSpatialServices.GetElevation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the elevation (Z coordinate) of the given value.
Overloads
GetElevation(DbGeography) |
Returns the elevation (Z coordinate) of the given DbGeography value, if it represents a point. |
GetElevation(DbGeometry) |
Returns the elevation (Z) of the given DbGeometry value, if it represents a point. |
GetElevation(DbGeography)
Returns the elevation (Z coordinate) of the given DbGeography value, if it represents a point.
public:
abstract Nullable<double> GetElevation(System::Data::Spatial::DbGeography ^ geographyValue);
public abstract double? GetElevation (System.Data.Spatial.DbGeography geographyValue);
abstract member GetElevation : System.Data.Spatial.DbGeography -> Nullable<double>
Public MustOverride Function GetElevation (geographyValue As DbGeography) As Nullable(Of Double)
Parameters
- geographyValue
- DbGeography
The geography value, which need not represent a point.
Returns
The elevation (Z coordinate) of geographyValue
, if it represents a point; otherwise null
.
Exceptions
geographyValue
geographyValue
Applies to
GetElevation(DbGeometry)
Returns the elevation (Z) of the given DbGeometry value, if it represents a point.
public:
abstract Nullable<double> GetElevation(System::Data::Spatial::DbGeometry ^ geometryValue);
public abstract double? GetElevation (System.Data.Spatial.DbGeometry geometryValue);
abstract member GetElevation : System.Data.Spatial.DbGeometry -> Nullable<double>
Public MustOverride Function GetElevation (geometryValue As DbGeometry) As Nullable(Of Double)
Parameters
- geometryValue
- DbGeometry
The geometry value, which need not represent a point.
Returns
The elevation (Z) of geometryValue
, if it represents a point; otherwise null
.
Exceptions
geometryValue
geometryValue
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för