GEOS  3.9.1dev
Public Member Functions | Private Attributes | List of all members
geos::noding::snap::SnappingPointIndex Class Reference

#include <SnappingPointIndex.h>

Public Member Functions

 SnappingPointIndex (double p_snapTolerance)
 
const geom::Coordinatesnap (const geom::Coordinate &p)
 

Private Attributes

std::unique_ptr< index::kdtree::KdTreesnapPointIndex
 

Detailed Description

Definition at line 29 of file SnappingPointIndex.h.

Constructor & Destructor Documentation

geos::noding::snap::SnappingPointIndex::SnappingPointIndex ( double  p_snapTolerance)

Member Function Documentation

const geom::Coordinate& geos::noding::snap::SnappingPointIndex::snap ( const geom::Coordinate p)

Snaps a coordinate to an existing snap point, if it is within the snap tolerance distance. Otherwise adds the coordinate to the snap point index.

Parameters
pthe point to snap
Returns
the point it snapped to, or the input point

Member Data Documentation

std::unique_ptr<index::kdtree::KdTree> geos::noding::snap::SnappingPointIndex::snapPointIndex
private

An index providing fast creation and lookup of snap points.

Author
mdavis

Definition at line 39 of file SnappingPointIndex.h.


The documentation for this class was generated from the following file: