From d2d62bc95cea28b9f43469f4bb29a3cc8b63c577 Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 3 Feb 2017 17:21:05 +0100 Subject: [PATCH] Return failure on invalid bounding box when `--validate-features` option is used. (ref #3611) --- utils/mapnik-index/process_geojson_file.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/mapnik-index/process_geojson_file.cpp b/utils/mapnik-index/process_geojson_file.cpp index 44553185f..c00c55494 100644 --- a/utils/mapnik-index/process_geojson_file.cpp +++ b/utils/mapnik-index/process_geojson_file.cpp @@ -137,6 +137,11 @@ std::pair 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); }