26#ifndef __TERRALIB_ST_INTERNAL_TRAJECTORYDATASETLAYER_H
27#define __TERRALIB_ST_INTERNAL_TRAJECTORYDATASETLAYER_H
34#include <boost/ptr_container/ptr_vector.hpp>
42 class TrajectoryDataSet;
43 class TrajectoryDataSetInfo;
102 AbstractLayer*
clone() {
return nullptr; }
116 std::unique_ptr<te::da::DataSet>
getData(
const std::string& propertyName,
122 std::unique_ptr<te::da::DataSet>
getData(
const std::string& propertyName,
213 boost::ptr_vector<TrajectoryDataSetLayer>
m_layers;
214 std::unique_ptr<TrajectoryDataSetInfo>
m_info;
This file has the AbstractSTDataSetLayer class that provides an abstract interface for layers that co...
A class that models the description of a dataset.
This is an abstract class that models a query expression.
This class represents a set of unique ids created in the same context. i.e. from the same data set.
An abstract class to represent a period of date and time.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A canvas is an abstraction of a drawing area.
A layer with reference to a dataset that contains spatiotemporal data.
A class that contains infos about a DataSet that contains observations of one or more trajectories.
A layer with reference to a dataset that contains trajectories.
te::dt::DateTimePeriod * getTemporalExtent() const
It returns the layer temporal extent.
const std::string & getType() const
It returns the layer type: TRAJECTORYDATASETLAYER.
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(te::common::TraverseType travType=te::common::FORWARDONLY) const
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.
std::unique_ptr< te::da::DataSet > getData(const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess) const
It gets the dataset using a temporal filter over the phenomenon time property.
std::unique_ptr< te::da::DataSet > getData(const te::dt::DateTime &dt, te::dt::TemporalRelation tr, const te::gm::Envelope &e, te::gm::SpatialRelation sr=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess) const
It gets the dataset using a temporal filter over the phenomenon time property and a spatial filter ov...
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.
bool hasChilds()
Checks if the layer has any childs.
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.
AbstractLayer * clone()
It returns a clone of the object.
std::unique_ptr< TrajectoryDataSetInfo > m_info
, A container the holds any child layers.
void setRendererType(const std::string &t)
std::string m_rendererType
A pointer to the internal renderer used to paint this layer.
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(const te::gm::Envelope &e, te::gm::SpatialRelation r=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY) const
std::unique_ptr< LayerSchema > getSchema() const
It returns the layer schema.
TrajectoryDataSetLayer(AbstractLayer *parent=0)
It initializes a new layer.
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(const te::dt::DateTime &dt, te::dt::TemporalRelation tr, const te::gm::Envelope &e, te::gm::SpatialRelation sr=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY) const
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...
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(const te::gm::Geometry &g, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY) const
bool isValid() const
It returns true if the layer can be used for instance to draw, otherwise, it returns false.
const std::string & getDataSourceId() const
TrajectoryDataSetLayer(const std::string &id, const std::string &title, AbstractLayer *parent, TrajectoryDataSetInfo *info)
It initializes a new Layer.
~TrajectoryDataSetLayer()
Destructor.
TrajectoryDataSetLayer(const std::string &id, AbstractLayer *parent, TrajectoryDataSetInfo *info)
It initializes a new layer.
static const std::string sm_type
A static data member used in the implementation of getType method.
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(const te::dt::DateTime &dt, te::dt::TemporalRelation tr, const te::gm::Geometry &g, te::gm::SpatialRelation sr=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY) const
void draw(te::map::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.
std::unique_ptr< te::da::DataSet > getData(const te::dt::DateTime &dt, te::dt::TemporalRelation tr, const te::gm::Geometry &g, te::gm::SpatialRelation sr=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess) const
It gets the dataset using a temporal filter over the phenomenon time property and a spatial filter ov...
TrajectoryDataSetLayer(AbstractLayer *parent, TrajectoryDataSetInfo *info)
It initializes a new layer.
std::unique_ptr< te::st::TrajectoryDataSet > getTrajectoryDataset(const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY) const
boost::ptr_vector< TrajectoryDataSetLayer > m_layers
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.
const std::string & getRendererType() const
TraverseType
A dataset can be traversed in two ways:
AccessPolicy
Supported data access policies (can be used as bitfield).
TemporalRelation
Temporal relations between date and time (Source: Allen, 1991).
SpatialRelation
Spatial relations between geometric objects.
boost::intrusive_ptr< TrajectoryDataSetLayer > TrajectoryDataSetLayerPtr
te::da::DataSetType LayerSchema
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.