diff --git a/Applications/Rasterization/otbRasterization.cxx b/Applications/Rasterization/otbRasterization.cxx index 7bf9d61c8f01466b5f1e33d7a5f17d6ab4ab2c59..88d404e0cbfe6e93bff4a0094daeb45f1c3829b0 100644 --- a/Applications/Rasterization/otbRasterization.cxx +++ b/Applications/Rasterization/otbRasterization.cxx @@ -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()); } }