Skip to content
Snippets Groups Projects
Commit 7fdacc55 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Error in errors handling

parent 4297fed4
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
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