18 #ifndef __otbGenericMapProjection_txx
19 #define __otbGenericMapProjection_txx
28 unsigned int NOutputDimensions>
36 unsigned int NOutputDimensions>
43 unsigned int NOutputDimensions>
48 return m_MapProjection;
53 unsigned int NOutputDimensions>
58 return m_MapProjection->GetWkt();
62 unsigned int NOutputDimensions>
67 m_MapProjection->SetWkt(projectionRefWkt);
72 unsigned int NOutputDimensions>
77 return m_MapProjection->InstanciateProjection();
81 unsigned int NOutputDimensions>
93 if (InputPointType::PointDimension == 3) z = point[2];
95 m_MapProjection->InverseTransform(point[0], point[1], z, lon, lat, h);
99 if (OutputPointType::PointDimension == 3) outputPoint[2] = h;
107 if (InputPointType::PointDimension == 3) h = point[2];
108 m_MapProjection->ForwardTransform(point[0], point[1], h, x, y, z);
111 if (OutputPointType::PointDimension == 3) outputPoint[2] = z;
119 unsigned int NOutputDimensions>
124 m_MapProjection->PrintMap();
128 unsigned int NOutputDimensions>
133 return (m_MapProjection->GetMapProjection() !=
NULL);
137 unsigned int NOutputDimensions>
142 m_MapProjection->SetParameter(key, value);
146 unsigned int NOutputDimensions>
151 return m_MapProjection->GetParameter(key);
155 unsigned int NOutputDimensions>
160 Superclass::PrintSelf(os, indent);
161 os << indent <<
"ProjectionRefWkt: " << m_MapProjection->GetWkt() << std::endl;