From abb4271bea9c2016f6229da2d3ce8bc4c7e5cb44 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 12 Jul 2016 17:42:53 +0100 Subject: [PATCH] extract_bounding_box_grammar - make features optional / ref #3463 --- include/mapnik/json/extract_bounding_box_grammar_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/json/extract_bounding_box_grammar_impl.hpp b/include/mapnik/json/extract_bounding_box_grammar_impl.hpp index 9e21baa08..25ddbcd92 100644 --- a/include/mapnik/json/extract_bounding_box_grammar_impl.hpp +++ b/include/mapnik/json/extract_bounding_box_grammar_impl.hpp @@ -110,7 +110,7 @@ extract_bounding_box_grammar::extract_bounding_bo >> *((json.key_value - lit("\"features\"")) >> lit(',')) >> lit("\"features\"") >> lit(':')) - >> lit('[') >> (feature(_r1,_a) % lit(',')) >> lit(']') + >> lit('[') >> -(feature(_r1,_a) % lit(',')) >> lit(']') ; feature = raw[lit('{')[_a = 1]