Go to the documentation of this file.
26 #ifndef __TERRALIB_MAPTOOLS_INTERNAL_RASTERLAYER_H
27 #define __TERRALIB_MAPTOOLS_INTERNAL_RASTERLAYER_H
39 namespace rst {
class Raster; }
90 std::unique_ptr<te::da::DataSet>
getData(
const std::string& ,
96 std::unique_ptr<te::da::DataSet>
getData(
const std::string& ,
170 #endif // __TERRALIB_MAPTOOLS_INTERNAL_RASTERLAYER_H
An Envelope defines a 2D rectangular region.
AbstractLayer * clone()
It returns a clone of the object.
std::map< std::string, std::string > m_rinfo
A raster connection info.
te::rst::Raster * getRaster() const
An abstract class for raster data strucutures.
std::unique_ptr< te::da::DataSet > getData(const std::string &, const te::gm::Geometry *, te::gm::SpatialRelation, te::common::TraverseType=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...
std::unique_ptr< te::da::DataSet > getData(const std::string &, const te::gm::Envelope *, te::gm::SpatialRelation=te::gm::INTERSECTS, te::common::TraverseType=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.
boost::intrusive_ptr< RasterLayer > RasterLayerPtr
std::unique_ptr< te::da::DataSet > getData(const te::da::ObjectIdSet *, te::common::TraverseType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset from the given set of objects identification.
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.
TraverseType
A dataset can be traversed in two ways:
std::map< std::string, std::string > getRasterInfo() const
A layer with reference to a raster.
~RasterLayer()
Destructor.
bool isValid() const
It returns true if the layer can be used for instance to draw, otherwise, it returns false.
SpatialRelation
Spatial relations between geometric objects.
This is an abstract class that models a query expression.
RasterLayer(AbstractLayer *parent=0)
It initializes a new layer.
RasterLayer(const std::string &id, const std::string &title, AbstractLayer *parent=0)
It initializes a new Layer.
This is the base class for layers.
A canvas is an abstraction of a drawing area.
RasterLayer(const std::string &id, AbstractLayer *parent=0)
It initializes a new layer.
std::string m_rendererType
A pointer to the internal renderer used to paint this layer.
static const std::string sm_type
A static data member used in the implementation of getType method.
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.
This is the base class for Layers.
const std::string & getRendererType() const
void setRendererType(const std::string &t)
std::unique_ptr< te::da::DataSet > getData(te::da::Expression *, te::common::TraverseType=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.
std::unique_ptr< LayerSchema > getSchema() const
It returns the layer schema.
void setRasterInfo(const std::map< std::string, std::string > &rinfo)
const std::string & getType() const
It returns the layer type: RASTER_LAYER.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
AccessPolicy
Supported data access policies (can be used as bitfield).
This class represents a set of unique ids created in the same context. i.e. from the same data set.