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

ENH : Use the method IsProjectionRef to get the status of the mapProjection

parent 22a0b496
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
InverseMapProjectionType;
typename InverseMapProjectionType::Pointer mapTransform = InverseMapProjectionType::New();
mapTransform->SetWkt(m_InputProjectionRef);
if (mapTransform->GetMapProjection()->GetMapProjection() != NULL)
if (mapTransform->IsProjectionDefined())
{
m_InputTransform = mapTransform.GetPointer();
inputTransformIsMap = true;
......@@ -195,7 +195,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
OutputSpaceDimension> ForwardMapProjectionType;
typename ForwardMapProjectionType::Pointer mapTransform = ForwardMapProjectionType::New();
mapTransform->SetWkt(m_OutputProjectionRef);
if (mapTransform->GetMapProjection()->GetMapProjection() != NULL)
if (mapTransform->IsProjectionDefined())
{
m_OutputTransform = mapTransform.GetPointer();
outputTransformIsMap = true;
......
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