25#ifndef __TERRALIB_GEOMETRY_INTERNAL_COORDINATESNAPPER_H
26#define __TERRALIB_GEOMETRY_INTERNAL_COORDINATESNAPPER_H
34struct CoordIndexInternal;
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance,...
static te::gm::Geometry * snapCoordinates(const te::gm::Geometry *geometry, double distance, CoordIndex &coordIndex, bool &wasChanged)
Snaps the geometry coordinates to the existing clusters in the coordinate index.
static te::gm::GeometryVector snapCoordinates(const te::gm::GeometryVectorConst &vecGeometries, double distance, bool validateResult=true)
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance,...
static te::gm::GeometryPtr snapCoordinates(const te::gm::Geometry *geometry, double distance, bool validateResult=true)
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance,...
static void populateCoordIndex(const te::gm::Geometry *geometry, CoordIndex &coordIndex)
Populates the coordinate index considering the coordinates of the given geometry.
static void populateCoordIndex(const te::gm::GeometryVectorConst &vecGeometries, CoordIndex &coordIndex)
Populates the coordinate index considering the coordinates of the given geometry vector.
static void snapToClusters(double distance, CoordIndex &coordIndex)
Analyses all the coordinates in the coordinate index, detecting clusters and the snapping them to eac...
static te::gm::GeometryVector snapCoordinates(const te::gm::GeometryVectorConst &vecGeometries, double distance, bool validateResult, CoordIndex &coordIndex)
Snaps the geometries coordinates to the existing clusters in the coordinate index.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Namespace for the Vector Geometry module of TerraLib.
std::vector< te::gm::Geometry * > GeometryVector
std::vector< const te::gm::Geometry * > GeometryVectorConst
An utility struct for representing 2D coordinates.
Configuration flags for the Vector Geometry Model of TerraLib.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.