Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (36 sloc) 1.47 KB
// mapnik
#include <mapnik/datasource.hpp>
const std::string MERCATOR_PROJ4 = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over";
class jit_datasource : public mapnik::datasource
// constructor
jit_datasource(mapnik::parameters const& params, bool bind=true);
virtual ~jit_datasource ();
mapnik::datasource::datasource_t type() const;
static std::string name();
mapnik::featureset_ptr features(mapnik::query const& q) const;
mapnik::featureset_ptr features_at_point(mapnik::coord2d const& pt) const;
mapnik::box2d<double> envelope() const;
mapnik::statistics_ptr get_statistics() const;
boost::optional<mapnik::datasource::geometry_t> get_geometry_type() const;
mapnik::layer_descriptor get_descriptor() const;
void bind() const;
// recommended naming convention of datasource members:
// name_, type_, extent_, and desc_
static const std::string name_;
mutable std::string geometry_type_string_;
mapnik::datasource::datasource_t type_;
mutable std::map<std::string, mapnik::parameters> statistics_;
mutable mapnik::layer_descriptor desc_;
mutable std::string url_;
mutable std::string tileurl_;
mutable std::string thisurl_;
mutable int minzoom_;
mutable int maxzoom_;
mutable mapnik::box2d<double> extent_;