Skip to content
Snippets Groups Projects
Commit 22a0b496 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : add a method IsProjectionRef to get the status of the internal MapProjection

parent 86d48fd7
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,8 @@ public:
const MapProjectionWrapper* GetMapProjection() const;
virtual bool IsProjectionDefined();
protected:
GenericMapProjection();
virtual ~GenericMapProjection();
......
......@@ -124,6 +124,15 @@ GenericMapProjection<TDirectionOfMapping, TScalarType, NInputDimensions, NOutput
m_MapProjection->PrintMap();
}
template<TransformDirection::TransformationDirection TDirectionOfMapping, class TScalarType, unsigned int NInputDimensions,
unsigned int NOutputDimensions>
bool
GenericMapProjection<TDirectionOfMapping, TScalarType, NInputDimensions, NOutputDimensions>
::IsProjectionDefined()
{
return (m_MapProjection->GetMapProjection() != NULL);
}
template<TransformDirection::TransformationDirection TDirectionOfMapping, class TScalarType, unsigned int NInputDimensions,
unsigned int NOutputDimensions>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment