Commits

Stéphane ALBERT committed 363f772

ENH: Throwed exception when GDALOverviewsBuilder::m_NbOfResolutions==0.

Comments (0)

Files changed (1)

Code/IO/otbGDALDriverManagerWrapper.cxx

       itkExceptionMacro(<< "Error while opening the file "<< m_InputFileName.c_str() << ".");
       }
 
+
+    if( m_NbOfResolutions==0 )
+      {
+      itkExceptionMactro( "Wrong number of resolutions: " << m_NbOfResolutions );
+      }
+
     // Build the overviews list from nb of resolution desired
     std::vector<int> ovwlist;
     unsigned int factor = 1;