diff --git a/include/mapnik/json/extract_bounding_box_grammar.hpp b/include/mapnik/json/extract_bounding_box_grammar.hpp index 2183fe501..bfe9185bf 100644 --- a/include/mapnik/json/extract_bounding_box_grammar.hpp +++ b/include/mapnik/json/extract_bounding_box_grammar.hpp @@ -45,8 +45,8 @@ namespace mapnik { namespace json { -using position = mapnik::geometry::point; -using boxes = std::vector, std::pair>>; +using position_type = mapnik::geometry::point; +using boxes_type = std::vector, std::pair>>; namespace qi = boost::spirit::qi; @@ -84,15 +84,15 @@ struct push_box_impl template > struct extract_bounding_box_grammar : - qi::grammar + qi::grammar { extract_bounding_box_grammar(); // rules - qi::rule start; - qi::rule, void(boxes&), space_type> features; - qi::rule>, void(boxes&, Iterator const&), space_type> feature; + qi::rule start; + qi::rule, void(boxes_type&), space_type> features; + qi::rule>, void(boxes_type&, Iterator const&), space_type> feature; qi::rule>, box2d(), space_type> coords; - qi::rule(), space_type> pos; + qi::rule(), space_type> pos; qi::rule&), space_type> ring; qi::rule&), space_type> rings; qi::rule&), space_type> rings_array; diff --git a/plugins/input/geojson/geojson_datasource.cpp b/plugins/input/geojson/geojson_datasource.cpp index 78d2ad2a1..bd976ec94 100644 --- a/plugins/input/geojson/geojson_datasource.cpp +++ b/plugins/input/geojson/geojson_datasource.cpp @@ -198,7 +198,7 @@ const mapnik::json::extract_bounding_box_grammar geojson_dat template void geojson_datasource::initialise_index(Iterator start, Iterator end) { - mapnik::json::boxes boxes; + mapnik::json::boxes_type boxes; boost::spirit::standard::space_type space; Iterator itr = start; if (!boost::spirit::qi::phrase_parse(itr, end, (geojson_datasource_static_bbox_grammar)(boost::phoenix::ref(boxes)) , space))