GEOS 3.14.0dev
Public Member Functions | List of all members
geos::operation::overlay::snap::LineStringSnapper Class Reference

Snaps the vertices and segments of a LineString to a set of target snap vertices. More...

#include <LineStringSnapper.h>

Public Member Functions

 LineStringSnapper (const geom::CoordinateSequence &nSrcPts, double nSnapTol)
 
std::unique_ptr< geom::CoordinateSequencesnapTo (const geom::Coordinate::ConstVect &snapPts)
 
void setAllowSnappingToSourceVertices (bool allow)
 

Detailed Description

Snaps the vertices and segments of a LineString to a set of target snap vertices.

A snapping distance tolerance is used to control where snapping is performed.

Constructor & Destructor Documentation

◆ LineStringSnapper()

geos::operation::overlay::snap::LineStringSnapper::LineStringSnapper ( const geom::CoordinateSequence nSrcPts,
double  nSnapTol 
)
inline

Creates a new snapper using the given points as source points to be snapped.

Parameters
nSrcPtsthe points to snap
nSnapTolthe snap tolerance to use

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