From 0ffec87be7f7559e30eaf7158ce03e783f5257d2 Mon Sep 17 00:00:00 2001 From: Jonathan Guinet <jonathan.guinet@c-s.fr> Date: Thu, 5 Jul 2012 18:27:48 +0200 Subject: [PATCH] STYLE: add log to segmentation application. --- Applications/Segmentation/otbSegmentation.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Segmentation/otbSegmentation.cxx b/Applications/Segmentation/otbSegmentation.cxx index e4ac0388cf..1eb6a8a6a0 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 "); } } -- GitLab