2012-06-13 12:30:58 +00:00
|
|
|
#ifndef GEOJSON_FEATURESET_HPP
|
|
|
|
#define GEOJSON_FEATURESET_HPP
|
|
|
|
|
2013-01-04 17:23:06 +00:00
|
|
|
#include <mapnik/feature.hpp>
|
2012-06-13 12:30:58 +00:00
|
|
|
#include "geojson_datasource.hpp"
|
|
|
|
|
2012-06-14 11:16:25 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <deque>
|
|
|
|
|
|
|
|
|
2012-06-13 12:30:58 +00:00
|
|
|
class geojson_featureset : public mapnik::Featureset
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
geojson_featureset(std::vector<mapnik::feature_ptr> const& features,
|
2012-06-14 11:16:25 +00:00
|
|
|
std::deque<std::size_t>::const_iterator index_itr,
|
|
|
|
std::deque<std::size_t>::const_iterator index_end);
|
2012-06-13 12:30:58 +00:00
|
|
|
virtual ~geojson_featureset();
|
|
|
|
mapnik::feature_ptr next();
|
|
|
|
|
|
|
|
private:
|
|
|
|
mapnik::box2d<double> box_;
|
|
|
|
std::vector<mapnik::feature_ptr> const& features_;
|
2012-06-14 11:16:25 +00:00
|
|
|
std::deque<std::size_t>::const_iterator index_itr_;
|
|
|
|
std::deque<std::size_t>::const_iterator index_end_;
|
2012-06-13 12:30:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GEOJSON_FEATURESET_HPP
|