Height Property

Type

GeoCalcNET.LinearValue

 

Access

Get/Set

 

Description

The Height property provides access to the LinearValue that gives the height of this point.  The meaning of a height value within a GeodeticCoordSys is dependent upon the VerticalReference used in the GeodeticCoordSys.

 

Example

[VB]

Private Sub GeoCalcNET_GeodeticPoint_Height(ByVal pt As GeoCalcNET.GeodeticPoint, ByVal data As GeoCalcNET.DataSourceComponent)

Dim height As GeoCalcNET.LinearValue = pt.Height

Dim lv As New GeoCalcNET.LinearValue

lv.Units = data.GetLinearUnit("BMG", "METERS")

lv.InUnits = 1000

pt.Height = lv

End Sub

 

[C#]

private void GeoCalcNET_GeodeticPoint_Height(GeoCalcNET.GeodeticPoint pt, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.LinearValue height = pt.Height;

GeoCalcNET.LinearValue lv = new GeoCalcNET.LinearValue();

lv.Units = data.GetLinearUnit("BMG", "METERS");

lv.InUnits = 1500;

pt.Height = lv;

}