diff --git a/include/mapnik/json/topojson_utils.hpp b/include/mapnik/json/topojson_utils.hpp index 8cd92100b..506a0fbfa 100644 --- a/include/mapnik/json/topojson_utils.hpp +++ b/include/mapnik/json/topojson_utils.hpp @@ -120,7 +120,7 @@ struct bounding_box_visitor : public boost::static_visitor > } private: - topology topo_; + topology const& topo_; }; }} diff --git a/plugins/input/topojson/topojson_featureset.cpp b/plugins/input/topojson/topojson_featureset.cpp index e36702d87..beaf122fc 100644 --- a/plugins/input/topojson/topojson_featureset.cpp +++ b/plugins/input/topojson/topojson_featureset.cpp @@ -45,6 +45,8 @@ mapnik::feature_ptr topojson_featureset::next() std::size_t index = *index_itr_++; if ( index < topo_.geometries.size()) { + mapnik::topojson::geometry const& geom = topo_.geometries[index]; + return mapnik::feature_ptr(); // TODO } }