Public Sub New()
Public Sub New(ByVal vertReference As GeoCalcNET.VerticalReference)
public GeodeticCoordSys()
public GeodeticCoordSys(GeoCalcNET.VerticalReference vertReference)
The GeodeticCoordSys constructor creates a new instance of the GeodeticCoordSys class. The Datum, Envelope, and PointStyle properties must be set before the GeodeticCoordSys will be ready to use. There are two signatures for this constructor, one that takes no arguments, and one that takes a single argument giving the VerticalReference to use in this GeodeticCoordSys. If the constructor that takes no arguments is used, then the VerticalReference property will be set to null (Nothing in VB). This property will need to be set in order to perform calculations involving GeodeticPoints with a Height value.
Private Sub GeoCalcNET_GeodeticCoordSys(ByVal data As GeoCalcNET.DataSourceComponent)
Dim cs1 As New GeoCalcNET.GeodeticCoordSys
cs1.Datum = data.GetHorizontalDatum("BMG", "WGS84")
cs1.Envelope = data.GetEnvelope("BMG", "STANDARD_ENVELOPE")
cs1.PointStyle = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES")
cs1.VertReference = data.GetVerticalReference("BMG", "ELLIPSOID_HEIGHT")
Dim vr As GeoCalcNET.VerticalReference = data.GetVerticalReference("BMG", "ELLIPSOID_HEIGHT")
Dim cs2 As New GeoCalcNET.GeodeticCoordSys(vr)
cs2.Datum = data.GetHorizontalDatum("BMG", "WGS84")
cs2.Envelope = data.GetEnvelope("BMG", "STANDARD_ENVELOPE")
cs2.PointStyle = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES")
End Sub
private void GeoCalcNET_GeodeticCoordSys(GeoCalcNET.DataSourceComponent data)
{
GeoCalcNET.GeodeticCoordSys cs1 = new GeoCalcNET.GeodeticCoordSys();
cs1.Datum = data.GetHorizontalDatum("BMG", "WGS84");
cs1.Envelope = data.GetEnvelope("BMG", "STANDARD_ENVELOPE");
cs1.PointStyle = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");
cs1.VertReference = data.GetVerticalReference("BMG", "ELLIPSOID_HEIGHT");
GeoCalcNET.VerticalReference vr = data.GetVerticalReference("BMG", "ELLIPSOID_HEIGHT");
GeoCalcNET.GeodeticCoordSys cs2 = new GeoCalcNET.GeodeticCoordSys(vr);
cs2.Datum = data.GetHorizontalDatum("BMG", "WGS84");
cs2.Envelope = data.GetEnvelope("BMG", "STANDARD_ENVELOPE");
cs2.PointStyle = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");
}