mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
added yet to be implemented features_at_point
This commit is contained in:
parent
2e73fe0841
commit
c195e1d24d
@ -228,6 +228,11 @@ featureset_ptr postgis_datasource::features(const query& q) const
|
||||
return featureset_ptr(fs);
|
||||
}
|
||||
|
||||
featureset_ptr postgis_datasource::features_at_point(coord2d const& pt) const
|
||||
{
|
||||
return featureset_ptr();
|
||||
}
|
||||
|
||||
const Envelope<double>& postgis_datasource::envelope() const
|
||||
{
|
||||
return extent_;
|
||||
|
||||
@ -56,6 +56,7 @@ public:
|
||||
static std::string name();
|
||||
int type() const;
|
||||
featureset_ptr features(const query& q) const;
|
||||
featureset_ptr features_at_point(coord2d const& pt) const;
|
||||
mapnik::Envelope<double> const& envelope() const;
|
||||
layer_descriptor const& get_descriptor() const;
|
||||
postgis_datasource(const parameters ¶ms);
|
||||
|
||||
@ -92,3 +92,8 @@ featureset_ptr raster_datasource::features(query const& q) const
|
||||
}
|
||||
|
||||
|
||||
featureset_ptr raster_datasource::features_at_point(coord2d const&) const
|
||||
{
|
||||
return featureset_ptr();
|
||||
}
|
||||
|
||||
|
||||
@ -40,10 +40,11 @@ private:
|
||||
static std::string name_;
|
||||
public:
|
||||
raster_datasource(const parameters& params);
|
||||
virtual ~raster_datasource();
|
||||
int type() const;
|
||||
static std::string name();
|
||||
featureset_ptr features(const query& q) const;
|
||||
virtual ~raster_datasource();
|
||||
int type() const;
|
||||
static std::string name();
|
||||
featureset_ptr features(const query& q) const;
|
||||
featureset_ptr features_at_point(coord2d const& pt) const;
|
||||
mapnik::Envelope<double> const& envelope() const;
|
||||
layer_descriptor const& get_descriptor() const;
|
||||
private:
|
||||
|
||||
@ -148,9 +148,16 @@ featureset_ptr shape_datasource::features(const query& q) const
|
||||
filter_in_box filter(q.get_bbox());
|
||||
if (indexed_)
|
||||
{
|
||||
return featureset_ptr(new shape_index_featureset<filter_in_box>(filter,shape_name_,q.property_names()));
|
||||
return featureset_ptr
|
||||
(new shape_index_featureset<filter_in_box>(filter,shape_name_,q.property_names()));
|
||||
}
|
||||
return featureset_ptr(new shape_featureset<filter_in_box>(filter,shape_name_,q.property_names(),file_length_));
|
||||
return featureset_ptr
|
||||
(new shape_featureset<filter_in_box>(filter,shape_name_,q.property_names(),file_length_));
|
||||
}
|
||||
|
||||
featureset_ptr shape_datasource::features_at_point(coord2d const& pt) const
|
||||
{
|
||||
return featureset_ptr();
|
||||
}
|
||||
|
||||
const Envelope<double>& shape_datasource::envelope() const
|
||||
|
||||
@ -41,6 +41,7 @@ public:
|
||||
int type() const;
|
||||
static std::string name();
|
||||
featureset_ptr features(const query& q) const;
|
||||
featureset_ptr features_at_point(coord2d const& pt) const;
|
||||
const Envelope<double>& envelope() const;
|
||||
layer_descriptor const& get_descriptor() const;
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user