Commit 5a4c251d authored by Julien Michel's avatar Julien Michel

MRG

parents 81c031a3 5e0bc982
......@@ -797,7 +797,6 @@ BOOST_AUTO_TEST_CASE(Add_n_Read_Fields)
BOOST_AUTO_TEST_CASE(OGRDataSource_new_shp_with_features)
{
const std::string k_shp = "SomeShapeFileWithFeatures";
const std::string k_one = k_shp;
ogr::DataSource::Pointer ds = ogr::DataSource::New(k_shp+".shp", ogr::DataSource::Modes::Overwrite);
ogr::Layer l = ds -> CreateLayer(k_one, 0, wkbPoint);
......
......@@ -353,8 +353,10 @@ SEMClassifier<TInputImage, TOutputImage>
{
//label = (int) floor( 0.5 + nbClassesDbl * ran / double(RAND_MAX+1) );
label = rand() % nbClasses;
if (label < 0) label = 0;
else if (label >= nbClasses) label = nbClasses - 1;
if (label >= nbClasses)
{
label = nbClasses - 1;
}
*labelIter = label;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment