Public Function FromPlane(ByVal inputPoint As GeoCalcNET.ProjectedPoint, ByVal outputPoint As GeoCalcNET.GeodeticPoint) As Boolean
public System.Boolean FromPlane(GeoCalcNET.ProjectedPoint inputPoint, GeoCalcNET.GeodeticPoint outputPoint)
The FromPlane method 'un-projects' a ProjectedPoint to produce the GeodeticPoint on the Datum that corresponds to the input point. The method takes two arguments, the first of which is the ProjectedPoint that should be 'un-projected', and the second of which is the GeodeticPoint that will hold the result. The method returns a boolean value indicating the success of the operation.
Private Sub GeoCalcNET_Projection_FromPlane(ByVal proj As GeoCalcNET.Projection, ByVal data As GeoCalcNET.DataSourceComponent)
Dim ppt As GeoCalcNET.ProjectedPoint = data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS")
ppt.SetInUnits(241, -555)
Dim gpt As GeoCalcNET.GeodeticPoint = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES")
If Not proj.FromPlane(ppt, gpt) Then
MessageBox.Show("unable to convert point")
End If
End Sub
private void GeoCalcNET_Projection_FromPlane(GeoCalcNET.Projection proj, GeoCalcNET.DataSourceComponent data)
{
GeoCalcNET.ProjectedPoint ppt = data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS");
GeoCalcNET.GeodeticPoint gpt = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");
ppt.SetInUnits(855, 3260);
if(! proj.FromPlane(ppt, gpt))
{
MessageBox.Show("unable to convert point from the projection plane");
}
}