relax FeatureCollection grammar to allow arbitary key:value's

This commit is contained in:
artemp 2014-05-16 11:18:27 +01:00 committed by Dane Springmeyer
parent e31411bd21
commit 461c3dab18

View file

@ -79,7 +79,7 @@ struct feature_collection_grammar :
start = feature_collection | feature_from_geometry(_val) | feature(_val)
;
feature_collection = lit('{') >> (type | features) % lit(',') >> lit('}')
feature_collection = lit('{') >> (type | features | json.key_value) % lit(',') >> lit('}')
;
type = lit("\"type\"") >> lit(':') >> lit("\"FeatureCollection\"")