Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance, ensuring that they now have the exactly same location.  
 More...
#include <CoordinateSnapper.h>
 | 
| static void  | populateCoordIndex (const te::gm::Geometry *geometry, CoordIndex &coordIndex) | 
|   | Populates the coordinate index considering the coordinates of the given geometry.  More...
  | 
|   | 
| static void  | populateCoordIndex (const te::gm::GeometryVectorConst &vecGeometries, CoordIndex &coordIndex) | 
|   | Populates the coordinate index considering the coordinates of the given geometry vector.  More...
  | 
|   | 
| 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.  More...
  | 
|   | 
| 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.  More...
  | 
|   | 
| static void  | snapToClusters (double distance, CoordIndex &coordIndex) | 
|   | Analyses all the coordinates in the coordinate index, detecting clusters and the snapping them to each detected cluster.  More...
  | 
|   | 
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance, ensuring that they now have the exactly same location. 
- See also
 - GeometrySnapper 
 
Definition at line 56 of file CoordinateSnapper.h.
 
◆ populateCoordIndex() [1/2]
  
  
      
        
          | static void te::gm::CoordinateSnapper::populateCoordIndex  | 
          ( | 
          const te::gm::Geometry *  | 
          geometry,  | 
         
        
           | 
           | 
          CoordIndex &  | 
          coordIndex  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
Populates the coordinate index considering the coordinates of the given geometry. 
- Parameters
 - 
  
    | geometry | The geometry from which the coordinates will be added to the coordinate index  | 
    | coordIndex | The index to be populated  | 
  
   
 
 
◆ populateCoordIndex() [2/2]
  
  
      
        
          | static void te::gm::CoordinateSnapper::populateCoordIndex  | 
          ( | 
          const te::gm::GeometryVectorConst &  | 
          vecGeometries,  | 
         
        
           | 
           | 
          CoordIndex &  | 
          coordIndex  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
Populates the coordinate index considering the coordinates of the given geometry vector. 
- Parameters
 - 
  
    | vecGeometries | The geometries from which the coordinates will be added to the coordinate index  | 
    | coordIndex | The index to be populated  | 
  
   
 
 
◆ snapCoordinates() [1/4]
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance, ensuring that they now have the exactly same location. 
- Parameters
 - 
  
    | geometry | The geometry to be analysed  | 
    | distance | The distance to be considered for the snapping of the coordinates. | 
  
   
- Returns
 - The resulting snapped geometry 
 
 
 
◆ snapCoordinates() [2/4]
  
  
      
        
          | static te::gm::Geometry* te::gm::CoordinateSnapper::snapCoordinates  | 
          ( | 
          const te::gm::Geometry *  | 
          geometry,  | 
         
        
           | 
           | 
          double  | 
          distance,  | 
         
        
           | 
           | 
          CoordIndex &  | 
          coordIndex,  | 
         
        
           | 
           | 
          bool &  | 
          wasChanged  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
Snaps the geometry coordinates to the existing clusters in the coordinate index. 
- Parameters
 - 
  
    | geometry | The geometry to be snapped  | 
    | distance | The distance to be considered when detecting clusters and snapping geometries  | 
    | coordIndex | The coordinate index containing the clusters  | 
  
   
 
 
◆ snapCoordinates() [3/4]
Snaps the geometries coordinates to the existing clusters in the coordinate index. 
- Parameters
 - 
  
    | vecGeometries | The geometries to be snapped  | 
    | distance | The distance to be considered when detecting clusters and snapping geometries  | 
    | coordIndex | The coordinate index containing the clusters  | 
  
   
 
 
◆ snapCoordinates() [4/4]
Algorithm to snap existing "close" coordinates to each other based uppon a given tolerance, ensuring that they now have the exactly same location. 
- Parameters
 - 
  
    | vecGeometries | The geometry list to be analysed  | 
    | distance | The distance to be considered for the snapping of the coordinates. | 
  
   
- Returns
 - The resulting snapped geometries 
 
 
 
◆ snapToClusters()
  
  
      
        
          | static void te::gm::CoordinateSnapper::snapToClusters  | 
          ( | 
          double  | 
          distance,  | 
         
        
           | 
           | 
          CoordIndex &  | 
          coordIndex  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
Analyses all the coordinates in the coordinate index, detecting clusters and the snapping them to each detected cluster. 
- Parameters
 - 
  
    | distance | The distance to be considered when detecting clusters and snapping geometries  | 
    | coordIndex | The index to be populated  | 
  
   
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/geometry/CoordinateSnapper.h