Go to the documentation of this file.
26 #ifndef __TERRALIB_MAPTOOLS_INTERNAL_DATASETADAPTERLAYER_H
27 #define __TERRALIB_MAPTOOLS_INTERNAL_DATASETADAPTERLAYER_H
30 #include "../sam/rtree/Index.h"
31 #include "../sam/rtree.h"
37 namespace da {
class DataSetTypeConverter; }
88 std::unique_ptr<te::da::DataSet>
getData(
const std::string& propertyName,
94 std::unique_ptr<te::da::DataSet>
getData(
const std::string& propertyName,
124 void setConverter(std::unique_ptr<te::da::DataSetTypeConverter> converter);
162 #endif // __TERRALIB_MAPTOOLS_INTERNAL_DATASETADAPTERLAYER_H
An Envelope defines a 2D rectangular region.
const std::string & getType() const
It returns the layer type: DATASET_LAYER.
bool isValid() const
It returns true if the layer can be used for instance to draw, otherwise, it returns false.
DataSetAdapterLayer(const std::string &id, AbstractLayer *parent=0)
It initializes a new layer.
TraverseType
A dataset can be traversed in two ways:
void setConverter(std::unique_ptr< te::da::DataSetTypeConverter > converter)
It sets the converter that will be used by the layer.
std::string m_rendererType
A pointer to the internal renderer used to paint this layer.
boost::intrusive_ptr< DataSetAdapterLayer > DataSetAdapterLayerPtr
~DataSetAdapterLayer()
Destructor.
std::unique_ptr< LayerSchema > getSchema() const
It returns the layer schema.
std::unique_ptr< te::da::DataSet > getData(const std::string &propertyName, const te::gm::Envelope *e, te::gm::SpatialRelation r=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset identified by the layer name using a spatial filter over the specified property.
te::sam::rtree::Index< std::size_t, 4 > m_rtree
static const std::string sm_type
A static data member used in the implementation of getType method.
SpatialRelation
Spatial relations between geometric objects.
This is an abstract class that models a query expression.
const std::string & getRendererType() const
This is the base class for layers.
A canvas is an abstraction of a drawing area.
std::unique_ptr< te::da::DataSet > getData(te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset identified by the layer name.
std::unique_ptr< te::da::DataSet > getData(te::da::Expression *restriction, te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset identified by the layer name using the given restriction.
AbstractLayer * clone()
It returns a clone of the object.
std::unique_ptr< te::da::DataSet > getData(const std::string &propertyName, const te::gm::Geometry *g, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset identified by the layer name using a spatial filter over the given geometric prop...
te::da::DataSetTypeConverter * getConverter() const
It returns the DataSetTypeConverter.
std::unique_ptr< te::da::DataSet > getData(const te::da::ObjectIdSet *oids, te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset from the given set of objects identification.
This is the base class for Layers.
DataSetAdapterLayer(const std::string &id, const std::string &title, AbstractLayer *parent=0)
It initializes a new Layer.
std::unique_ptr< te::da::DataSetTypeConverter > m_converter
The DataSetConverter that will be cused to configure the layer.
void draw(Canvas *canvas, const te::gm::Envelope &bbox, int srid, const double &scale, bool *cancel)
It draws the layer geographic objects in the given canvas using the informed SRS.
void setRendererType(const std::string &t)
DataSetAdapterLayer(AbstractLayer *parent=0)
It initializes a new layer.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An converter for DataSetType.
AccessPolicy
Supported data access policies (can be used as bitfield).
A layer with reference to a DataSetTypeConverter.
This class represents a set of unique ids created in the same context. i.e. from the same data set.