Skip to content
Snippets Groups Projects
Commit 5f6fe592 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

WRG: generate a warning if no polygon found in listsamplegenerator class.

parent 6880d809
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@
#include "otbRemoteSensingRegion.h"
#include "otbVectorDataProjectionFilter.h"
#include "otbMacro.h"
namespace otb
{
......@@ -270,6 +272,7 @@ ListSampleGenerator<TImage, TVectorData>
}
else
{
otbWarningMacro("no polygon found");
m_ClassMinSize = 0;
m_NumberOfClasses = 0;
}
......
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