20 #ifndef GEOS_OP_OVERLAY_SNAP_LINESTRINGSNAPPER_H 21 #define GEOS_OP_OVERLAY_SNAP_LINESTRINGSNAPPER_H 66 snapTolerance(nSnapTol),
67 allowSnappingToSourceVertices(false)
69 size_t s = srcPts.size();
70 isClosed = s < 2 ?
false : srcPts[0].equals2D(srcPts[s - 1]);
79 allowSnappingToSourceVertices = allow;
98 geom::Coordinate::ConstVect::const_iterator findSnapForVertex(
const geom::Coordinate& pt,
167 #endif // GEOS_OP_OVERLAY_SNAP_LINESTRINGSNAPPER_H
Snaps the vertices and segments of a LineString to a set of target snap vertices. ...
Coordinate is the lightweight class used to store coordinates.
bool allowSnappingToSourceVertices
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
const geom::Coordinate::Vect & srcPts
Basic namespace for all GEOS functionalities.
std::list< Coordinate >::iterator iterator
std::vector< Coordinate > Vect
A vector of Coordinate objects (real object, not pointers)
A list of Coordinates, which may be set to prevent repeated coordinates from occuring in the list...
LineStringSnapper(const geom::Coordinate::Vect &nSrcPts, double nSnapTol)
void setAllowSnappingToSourceVertices(bool allow)