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