topojson - use json.value directly
This commit is contained in:
parent
04ce225728
commit
38ec14c739
2 changed files with 1 additions and 3 deletions
|
@ -70,7 +70,6 @@ private:
|
|||
// properties
|
||||
qi::rule<Iterator, space_type, mapnik::topojson::properties()> properties;
|
||||
qi::rule<Iterator, space_type, mapnik::topojson::properties()> attributes;
|
||||
qi::rule<Iterator, space_type, mapnik::json::json_value()> attribute_value;
|
||||
// id
|
||||
qi::rule<Iterator,space_type> id;
|
||||
};
|
||||
|
|
|
@ -262,10 +262,9 @@ topojson_grammar<Iterator, ErrorHandler>::topojson_grammar()
|
|||
>> (( lit('{') >> attributes >> lit('}')) | json.object)
|
||||
;
|
||||
|
||||
attributes = (json.string_ >> lit(':') >> attribute_value) % lit(',')
|
||||
attributes = (json.string_ >> lit(':') >> json.value) % lit(',')
|
||||
;
|
||||
|
||||
attribute_value %= json.number | json.string_ ;
|
||||
|
||||
arcs = lit("\"arcs\"") >> lit(':')
|
||||
>> lit('[') >> -( arc % lit(',')) >> lit(']') ;
|
||||
|
|
Loading…
Reference in a new issue