only two datasource types for now-(
This commit is contained in:
parent
fe8933749c
commit
3c9ffdd989
1 changed files with 6 additions and 8 deletions
|
@ -31,14 +31,14 @@
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
typedef ref_ptr<Feature> feature_ptr;
|
||||||
struct Featureset
|
struct Featureset
|
||||||
{
|
{
|
||||||
virtual Feature* next()=0;
|
virtual Feature* next()=0;
|
||||||
virtual ~Featureset() {};
|
virtual ~Featureset() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef ref_ptr<Featureset> FeaturesetPtr;
|
typedef ref_ptr<Featureset> featureset_ptr;
|
||||||
|
|
||||||
class datasource_exception : public std::exception
|
class datasource_exception : public std::exception
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
@ -58,13 +58,11 @@ namespace mapnik
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum {
|
enum {
|
||||||
Point=1,
|
Vector,
|
||||||
Line,
|
|
||||||
Polygon,
|
|
||||||
Raster
|
Raster
|
||||||
};
|
};
|
||||||
virtual int type() const=0;
|
virtual int type() const=0;
|
||||||
virtual FeaturesetPtr features(const query& q) const=0;
|
virtual featureset_ptr features(const query& q) const=0;
|
||||||
virtual const Envelope<double>& envelope() const=0;
|
virtual const Envelope<double>& envelope() const=0;
|
||||||
virtual ~datasource() {};
|
virtual ~datasource() {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue