Commit 7fdacc55 authored by Julien Michel's avatar Julien Michel

BUG: Error in errors handling

parent 4297fed4
......@@ -178,14 +178,14 @@ private:
try
{
inputProjectionRef = m_OgrDS->GetGlobalExtent(ulx,uly,lrx,lry);
inputProjectionRef = m_OgrDS->GetGlobalExtent(ulx,uly,lrx,lry,true);
extentAvailable = true;
}
catch(itk::ExceptionObject & err)
{
extentAvailable = false;
otbAppLogFATAL(<<"Failed to retrieve the spatial extent of the dataset in force mode. The spatial extent is mandatory when orx, ory, spx and spy parameters are not set, consider setting them.");
otbAppLogFATAL(<<"Failed to retrieve the spatial extent of the dataset in force mode. The spatial extent is mandatory when orx, ory, spx and spy parameters are not set, consider setting them. Error from library: "<<err.GetDescription());
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment