26#ifndef __TERRALIB_EDIT_INTERNAL_REPOSITORY_H
27#define __TERRALIB_EDIT_INTERNAL_REPOSITORY_H
30#include "../sam/rtree/Index.h"
31#include "../srs/Config.h"
This class represents an unique id for a data set element.
This class represents a repository of geometries and features.
void set(te::da::ObjectId *id, te::gm::Geometry *geom)
Repository(const std::string &source)
void set(const std::size_t &pos, Feature *f)
std::vector< Feature * > m_features
The repository features.
std::string m_source
The source of the features.
std::size_t getPosition(te::da::ObjectId *id)
Feature * getFeature(te::da::ObjectId *id) const
void remove(te::da::ObjectId *id)
Feature * getFeature(const te::gm::Envelope &e, int srid) const
bool hasIdentifier(te::da::ObjectId *id)
void buildIndex(const std::size_t &pos, te::gm::Geometry *geom)
const std::string & getSource() const
void add(te::da::ObjectId *id, te::gm::Geometry *geom)
te::sam::rtree::Index< std::size_t, 8 > m_rtree
Internal index used to retrieve geometries spatially.
std::vector< Feature * > getFeatures(const te::gm::Envelope &e, int srid) const
const std::vector< Feature * > & getAllFeatures() const
void add(te::gm::Geometry *geom)
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A class that represents an R-tree.
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).