ToGeodeticBaseMethod

[VB]

Public Function ToGeodeticBase(ByVal inputPoint As GeoCalcNET.ProjectedPoint, ByVal outputPoint As GeoCalcNET.GeodeticPoint) As Boolean

[C#]

public System.Boolean ToGeodeticBase(GeoCalcNET.ProjectedPoint inputPoint, GeoCalcNET.GeodeticPoint outputPoint)

 

Description

The ToGeodeticBase method converts a point given in this ProjectedCoordSys to one given in the base GeodeticCoordSys.  Teh base system is the same as the InnerGeodetic system, except it always uses the Greenwich PrimeMeridian.  The method takes two arguments, the first of which is the point to be converted, and the second of which is the point that will hold the result.  This method returns a boolean value indicating the success of the operation.

 

Example

[VB]

Private Sub GeoCalcNET_ProjectedCoordSys_ToGeodeticBase(ByVal cs As GeoCalcNET.ProjectedCoordSys, ByVal data As GeoCalcNET.DataSourceComponent)

Dim ppt As GeoCalcNET.ProjectedPoint = data.GetProjectedPoint("BMG", "PROJECTED_POINT_DEGREES")

ppt.SetInUnits(3400, -1255)

Dim gpt As GeoCalcNET.GeodeticPoint = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES")

If Not cs.ToGeodeticBase(ppt, gpt) Then

MessageBox.Show("ToGeodeticBase failed")

End If

End Sub

 

[C#]

private void GeoCalcNET_ProjectedCoordSys_ToGeodeticBase(GeoCalcNET.ProjectedCoordSys cs, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.GeodeticPoint geoPt = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");

GeoCalcNET.ProjectedPoint projPt = data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS");

projPt.SetInUnits(454.0, 3200.5);

if(! cs.ToGeodeticBase(projPt, geoPt))

{

MessageBox.Show("unable to convert point from geodetic base");

}

}