diff --git a/Applications/Segmentation/otbSegmentation.cxx b/Applications/Segmentation/otbSegmentation.cxx index e4ac0388cf2561389fa8e5c2c98c77eda85927aa..1eb6a8a6a04258dec9a49e150043258877c93bbc 100644 --- a/Applications/Segmentation/otbSegmentation.cxx +++ b/Applications/Segmentation/otbSegmentation.cxx @@ -454,8 +454,10 @@ private: //projection ref conversion to ESRI need to be tested in case of .shp if ((dataSourceName.find(".shp") != string::npos) && (!projRef.empty())) { + if (!(otb::GeoInformationConversion::IsESRIValidWKT(projRef))) { + otbAppLogFATAL(<<"Image projection reference "<<std::endl<< projRef); itkExceptionMacro(<<"Image spatial reference can't be converted to ESRI. Use another output format (kml,SQLite,...) to overcome .shp limitation "); } }