HeightModel Property

Type

GeoCalcNET.HeightModel

 

Access

Get/Set

 

Description

The HeightModel property provides access to the HeightModel that is used to relates ellipsoidal height measurements to the VerticalDatum.

Do not dispose of the HeightModel returned by this property.  It is managed by the VerticalReference and will be disposed of when the VerticalReference is disposed.

 

Example

[VB]

Private Sub GeoCalcNET_VerticalReference_HeightModel(ByVal vr As GeoCalcNET.VerticalReference, ByVal data As GeoCalcNET.DataSourceComponent)

Dim hm As GeoCalcNET.HeightModel = vr.HeightModel

vr.HeightModel = data.GetHeightModel("BMG", "GEOID03")

End Sub

 

[C#]

private void GeoCalcNET_VerticalReference_HeightModel(GeoCalcNET.VerticalReference vr, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.HeightModel hm = vr.HeightModel;

vr.HeightModel = data.GetHeightModel("BMG", "GEOID96");

}