26 #ifndef __TERRALIB_EDIT_INTERNAL_SNAPVERTEX_H
27 #define __TERRALIB_EDIT_INTERNAL_SNAPVERTEX_H
30 #include "../sam/rtree/Index.h"
This class implements geometry snap concept.
This class implements a vertex search snap.
SnapVertex(const std::string &source, int srid=TE_UNKNOWN_SRS)
static Snap * Builder(const std::string &source, int srid)
void add(te::gm::Geometry *geom)
std::vector< te::gm::Coord2D > m_coords
The snap coordinates.
std::string getName() const
bool search(const te::gm::Envelope &e, te::gm::Coord2D &result)
te::sam::rtree::Index< std::size_t, 8 > m_rtree
Internal index used to retrieve geometries spatially.
std::string getDescription() const
This class implements geometry snap concept.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An utility struct for representing 2D coordinates.
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.