diff --git a/plugins/input/geojson/build.py b/plugins/input/geojson/build.py index 11b0317fc..a5d738f58 100644 --- a/plugins/input/geojson/build.py +++ b/plugins/input/geojson/build.py @@ -43,7 +43,7 @@ else: %(PLUGIN_NAME)s_datasource.cpp %(PLUGIN_NAME)s_featureset.cpp %(PLUGIN_NAME)s_index_featureset.cpp - large_%(PLUGIN_NAME)s_featureset.cpp + %(PLUGIN_NAME)s_memory_index_featureset.cpp """ % locals() ) diff --git a/plugins/input/geojson/geojson_datasource.cpp b/plugins/input/geojson/geojson_datasource.cpp index aebf44903..6dce0df47 100644 --- a/plugins/input/geojson/geojson_datasource.cpp +++ b/plugins/input/geojson/geojson_datasource.cpp @@ -23,7 +23,7 @@ #include "geojson_datasource.hpp" #include "geojson_featureset.hpp" #include "geojson_index_featureset.hpp" -#include "large_geojson_featureset.hpp" +#include "geojson_memory_index_featureset.hpp" #include #include @@ -574,7 +574,7 @@ mapnik::featureset_ptr geojson_datasource::features(mapnik::query const& q) cons { return item0.second.first < item1.second.first; }); - return std::make_shared(filename_, std::move(index_array)); + return std::make_shared(filename_, std::move(index_array)); } } else if (has_disk_index_) diff --git a/plugins/input/geojson/large_geojson_featureset.cpp b/plugins/input/geojson/geojson_memory_index_featureset.cpp similarity index 91% rename from plugins/input/geojson/large_geojson_featureset.cpp rename to plugins/input/geojson/geojson_memory_index_featureset.cpp index 24709538a..14a1a6c14 100644 --- a/plugins/input/geojson/large_geojson_featureset.cpp +++ b/plugins/input/geojson/geojson_memory_index_featureset.cpp @@ -30,9 +30,9 @@ #include #include -#include "large_geojson_featureset.hpp" +#include "geojson_memory_index_featureset.hpp" -large_geojson_featureset::large_geojson_featureset(std::string const& filename, +geojson_memory_index_featureset::geojson_memory_index_featureset(std::string const& filename, array_type && index_array) : #ifdef _WINDOWS @@ -48,9 +48,9 @@ large_geojson_featureset::large_geojson_featureset(std::string const& filename, if (!file_) throw std::runtime_error("Can't open " + filename); } -large_geojson_featureset::~large_geojson_featureset() {} +geojson_memory_index_featureset::~geojson_memory_index_featureset() {} -mapnik::feature_ptr large_geojson_featureset::next() +mapnik::feature_ptr geojson_memory_index_featureset::next() { if (index_itr_ != index_end_) { diff --git a/plugins/input/geojson/large_geojson_featureset.hpp b/plugins/input/geojson/geojson_memory_index_featureset.hpp similarity index 82% rename from plugins/input/geojson/large_geojson_featureset.hpp rename to plugins/input/geojson/geojson_memory_index_featureset.hpp index 8321ff313..154460c58 100644 --- a/plugins/input/geojson/large_geojson_featureset.hpp +++ b/plugins/input/geojson/geojson_memory_index_featureset.hpp @@ -20,8 +20,8 @@ * *****************************************************************************/ -#ifndef LARGE_GEOJSON_FEATURESET_HPP -#define LARGE_GEOJSON_FEATURESET_HPP +#ifndef GEOJSON_MEMORY_INDEX_FEATURESET_HPP +#define GEOJSON_MEMORY_INDEX_FEATURESET_HPP #include #include "geojson_datasource.hpp" @@ -29,15 +29,15 @@ #include #include -class large_geojson_featureset : public mapnik::Featureset +class geojson_memory_index_featureset : public mapnik::Featureset { public: using array_type = std::deque; using file_ptr = std::unique_ptr; - large_geojson_featureset(std::string const& filename, + geojson_memory_index_featureset(std::string const& filename, array_type && index_array); - virtual ~large_geojson_featureset(); + virtual ~geojson_memory_index_featureset(); mapnik::feature_ptr next(); private: @@ -49,4 +49,4 @@ private: mapnik::context_ptr ctx_; }; -#endif // LARGE_GEOJSON_FEATURESET_HPP +#endif // GEOJSON_MEMORY_INDEX_FEATURESET_HPP