From f85636f769efa49af8f9da8410cf1ca1e04ed982 Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 3 Feb 2017 10:10:09 +0100 Subject: [PATCH] mapnik-index - log and return on invalid bounding box if `validate_features` is set. --- utils/mapnik-index/process_geojson_file_x3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/mapnik-index/process_geojson_file_x3.cpp b/utils/mapnik-index/process_geojson_file_x3.cpp index d0472738e..c55989bc7 100644 --- a/utils/mapnik-index/process_geojson_file_x3.cpp +++ b/utils/mapnik-index/process_geojson_file_x3.cpp @@ -316,6 +316,11 @@ std::pair process_geojson_file_x3(T & b } } } + 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); }