Public Function FromGeodeticBase(ByVal inputPoint As GeoCalcNET.GeodeticPoint, ByVal outputPoint As GeoCalcNET.ProjectedPoint) As Boolean
public System.Boolean FromGeodeticBase(GeoCalcNET.GeodeticPoint inputPoint, GeoCalcNET.ProjectedPoint outputPoint)
The FromGeodeticBase method converts a point given in the base GeodeticCoordSys to one given in this ProjectedCoordSys. The 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 store the result of the method. The method returns a boolean value indicating the success of the operation.
Private Sub GeoCalcNET_ProjectedCoordSys_FromGeodeticBase(ByVal cs As GeoCalcNET.ProjectedCoordSys, ByVal data As GeoCalcNET.DataSourceComponent)
Dim gpt As GeoCalcNET.GeodeticPoint = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES")
gpt.SetInUnits(-65.93, 21.01)
Dim ppt As GeoCalcNET.ProjectedPoint = data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS")
If Not cs.FromGeodeticBase(gpt, ppt) Then
MessageBox.Show("FromGeodeticBase failed")
End If
End Sub
private void GeoCalcNET_ProjectedCoordSys_FromGeodeticBase(GeoCalcNET.ProjectedCoordSys cs, GeoCalcNET.DataSourceComponent data)
{
GeoCalcNET.GeodeticPoint geoPt = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");
GeoCalcNET.ProjectedPoint projPt = data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS");
geoPt.SetInUnits(45.44, 32.02);
if(! cs.FromGeodeticBase(geoPt, projPt))
{
MessageBox.Show("unable to convert point from geodetic base");
}
}