From fe1c88f4a5ec8345f207e9403c954fabde82b27c Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 29 Oct 2013 10:55:13 +0000 Subject: [PATCH] topojson : allow individual geometries not just geometry collections --- include/mapnik/json/topojson_grammar_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/json/topojson_grammar_impl.hpp b/include/mapnik/json/topojson_grammar_impl.hpp index 3662bbfc3..092bca0f5 100644 --- a/include/mapnik/json/topojson_grammar_impl.hpp +++ b/include/mapnik/json/topojson_grammar_impl.hpp @@ -116,7 +116,7 @@ topojson_grammar::topojson_grammar() >> lit('{') >> -((omit[string_] >> lit(':') - >> geometry_collection) % lit(',')) + >> (geometry_collection | geometry)) % lit(',')) >> lit('}') ;