Skip to content
Snippets Groups Projects
Commit 18306535 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: added a warning if there is a no data value

parent 7d29ae2a
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@
//Utils
#include "itksys/SystemTools.hxx"
#include "otbNoDataHelper.h"
namespace otb
{
......@@ -467,6 +468,17 @@ private:
std::string projRef = GetParameterFloatVectorImage("in")->GetProjectionRef();
std::vector<bool> noDataFlags;
std::vector<double> noDataValues;
itk::MetaDataDictionary &dict = GetParameterFloatVectorImage("in")->GetMetaDataDictionary();
bool ret = otb::ReadNoDataFlags(dict,noDataFlags,noDataValues);
if (ret)
{
otbAppLogWARNING("The input image has no data values but this application does not handle no-data. No-data pixels"
" will be treated as regular pixels.");
}
OGRSpatialReference oSRS(projRef.c_str());
if (segModeType == "vector")
......
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