Return failure on invalid bounding box when --validate-features option is used. (ref #3611)

This commit is contained in:
artemp 2017-02-03 17:21:05 +01:00
parent 8cc7060ef1
commit d2d62bc95c

View file

@ -137,6 +137,11 @@ std::pair<bool,typename T::value_type::first_type> process_geojson_file(T & boxe
}
}
}
else if (validate_features)
{
if (verbose) std::clog << "Invalid bbox encountered " << item.first << std::endl;
return std::make_pair(false, extent);
}
}
return std::make_pair(true, extent);
}