simplify rules
This commit is contained in:
parent
8f74de8525
commit
c66fd480b5
2 changed files with 1 additions and 6 deletions
|
@ -69,7 +69,6 @@ private:
|
|||
qi::rule<Iterator, space_type, std::vector<index_type>()> ring;
|
||||
// properties
|
||||
qi::rule<Iterator, space_type, mapnik::topojson::properties()> properties;
|
||||
qi::rule<Iterator, space_type, mapnik::topojson::properties()> attributes;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -271,13 +271,9 @@ topojson_grammar<Iterator, ErrorHandler>::topojson_grammar()
|
|||
|
||||
properties = lit("\"properties\"")
|
||||
>> lit(':')
|
||||
>> lit('{') >> attributes >> lit('}')
|
||||
>> lit('{') >> (json.string_ >> lit(':') >> json.value) % lit(',') >> lit('}')
|
||||
;
|
||||
|
||||
attributes = (json.string_ >> lit(':') >> json.value) % lit(',')
|
||||
;
|
||||
|
||||
|
||||
arcs = lit("\"arcs\"") >> lit(':')
|
||||
>> lit('[') >> -( arc % lit(',')) >> lit(']') ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue