Merge pull request #4178 from mapnik/issue-4177

`null` properties in `Feature` object
This commit is contained in:
Artem Pavlenko 2020-10-09 09:37:24 +01:00 committed by GitHub
commit 4fbf8a054f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ auto const feature_part_def = feature_type
|
(lit("\"geometry\"") > lit(':') > geometry_rule[assign_geometry])
|
(lit("\"properties\"") > lit(':') > lit('{') > -properties > lit('}'))
(lit("\"properties\"") > lit(':') > ((lit('{') > -properties > lit('}')) | lit("null")))
|
(omit[geojson_string] > lit(':') > omit[value])
;