|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.operation.overlay.snap.LineStringSnapper
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 Summary | |
LineStringSnapper(Coordinate[] srcPts,
double snapTolerance)
Creates a new snapper using the given points as target snap points. |
|
LineStringSnapper(LineString line,
double snapTolerance)
Creates a new snapper using the points in the given LineString
as target snap points. |
|
| Method Summary | |
Coordinate[] |
snapTo(Coordinate[] snapPts)
Snaps the vertices and segments of the source LineString to the given set of target snap points. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineStringSnapper(LineString line,
double snapTolerance)
LineString
as target snap points.
line - a LineStringsnapTolerance - the snap tolerance to use
public LineStringSnapper(Coordinate[] srcPts,
double snapTolerance)
srcPts - the points to snap tosnapTolerance - the snap tolerance to use| Method Detail |
public Coordinate[] snapTo(Coordinate[] snapPts)
snapPts - the vertices to snap to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||