|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.operation.overlay.snap.LineStringSnapper
public class LineStringSnapper
Snaps the vertices and segments of a LineString
to a set of target snap vertices.
A snap distance tolerance is used to control where snapping is performed.
The implementation handles empty geometry and empty snap vertex sets.
Constructor Summary | |
---|---|
LineStringSnapper(Coordinate[] srcPts,
double snapTolerance)
Creates a new snapper using the given points as source points to be snapped. |
|
LineStringSnapper(LineString srcLline,
double snapTolerance)
Creates a new snapper using the points in the given LineString
as source snap points. |
Method Summary | |
---|---|
void |
setAllowSnappingToSourceVertices(boolean allowSnappingToSourceVertices)
|
Coordinate[] |
snapTo(Coordinate[] snapPts)
Snaps the vertices and segments of the source LineString to the given set of snap vertices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineStringSnapper(LineString srcLline, double snapTolerance)
LineString
as source snap points.
srcLine
- a LineString to snap (may be empty)snapTolerance
- the snap tolerance to usepublic LineStringSnapper(Coordinate[] srcPts, double snapTolerance)
srcPts
- the points to snapsnapTolerance
- the snap tolerance to useMethod Detail |
---|
public void setAllowSnappingToSourceVertices(boolean allowSnappingToSourceVertices)
public Coordinate[] snapTo(Coordinate[] snapPts)
snapPts
- the vertices to snap to
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |