Skip to content
Snippets Groups Projects
Commit 87504577 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: finishing up otbGeocentricTransform

parent 4f74be5d
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,25 @@ namespace otb
{
OutputPointType outputPoint;
switch (DirectionOfMapping)
{
case INVERSE:
{
m_Ellipsoid->XYZToLatLonHeight(point[0], point[1], point[2], outputPoint[1],outputPoint[0],outputPoint[2]);
break;
}
case FORWARD:
{
m_Ellipsoid->latLonHeightToXYZ(point[1], point[0], point[2], outputPoint[0],outputPoint[1],outputPoint[2]);
break;
}
default:
{
itkExceptionMacro(<<"Model is INVERSE or FORWARD only !!");
break;
}
}
//To be completed
return outputPoint;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment