From 81159bc006654575568d9e072d540e6492668d47 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 1 Oct 2013 19:17:07 +0100 Subject: [PATCH] oops -> don't copy topology object --- include/mapnik/json/topojson_utils.hpp | 2 +- plugins/input/topojson/topojson_featureset.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 } }