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

ENH : the map projection can be returned NULL, must be null in case of WGS84 as projectionRefWkt

parent 19ef3fa3
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ MapProjectionWrapper::~MapProjectionWrapper() ...@@ -50,7 +50,7 @@ MapProjectionWrapper::~MapProjectionWrapper()
MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapProjection() MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapProjection()
{ {
itkDebugMacro("returning MapProjection address " << this->m_MapProjection); itkDebugMacro("returning MapProjection address " << this->m_MapProjection);
if ((reinstanciateProjection) || (m_MapProjection == NULL)) if ((reinstanciateProjection) /*|| (m_MapProjection == NULL)*/)
{ {
this->InstanciateProjection(); this->InstanciateProjection();
} }
...@@ -61,7 +61,7 @@ MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapP ...@@ -61,7 +61,7 @@ MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapP
MapProjectionWrapper::InternalMapProjectionConstPointer MapProjectionWrapper::GetMapProjection() const MapProjectionWrapper::InternalMapProjectionConstPointer MapProjectionWrapper::GetMapProjection() const
{ {
itkDebugMacro("returning MapProjection address " << this->m_MapProjection); itkDebugMacro("returning MapProjection address " << this->m_MapProjection);
if ((reinstanciateProjection) || (m_MapProjection == NULL)) if ((reinstanciateProjection) /*|| (m_MapProjection == NULL)*/)
{ {
itkExceptionMacro(<< "m_MapProjection not up-to-date, call InstanciateProjection() first"); itkExceptionMacro(<< "m_MapProjection not up-to-date, call InstanciateProjection() first");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment