allow null geometry

This commit is contained in:
artemp 2016-11-29 16:23:22 +01:00
parent 2f5c12f28a
commit 2dc57effb8

View file

@ -268,7 +268,7 @@ auto const properties_def = property[assign_property] % lit(',');
auto const feature_part_def = feature_type
|
(lit("\"geometry\"") > lit(':') > lit('{') > geometry_tuple[assign_geometry] > lit('}'))
(lit("\"geometry\"") > lit(':') > (lit('{') > geometry_tuple[assign_geometry] > lit('}')) | lit("null"))
|
(lit("\"properties\"") > lit(':') > lit('{') > -properties > lit('}'))
|
@ -278,7 +278,7 @@ auto const feature_part_def = feature_type
auto const feature_rule_def = lit('{') > feature_part % lit(',') > lit('}');
auto const geometry_rule_def = lit('{') > geometry_tuple[assign_geometry] > lit('}');
auto const geometry_rule_def = (lit('{') > geometry_tuple[assign_geometry] > lit('}')) | lit("null");
#pragma GCC diagnostic push
#include <mapnik/warning_ignore.hpp>