|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.operation.overlay.snap.GeometrySnapper
Snaps the vertices and segments of a Geometry to another Geometry's vertices.
Improves robustness for overlay operations, by eliminating
nearly parallel edges (which cause problems during noding and intersection calculation).
| Constructor Summary | |
GeometrySnapper(Geometry g)
|
|
| Method Summary | |
static double |
computeOverlaySnapTolerance(Geometry g)
Estimates the snap tolerance for a Geometry, taking into account its precision model. |
static double |
computeOverlaySnapTolerance(Geometry g0,
Geometry g1)
|
static double |
computeSizeBasedSnapTolerance(Geometry g)
|
Coordinate[] |
extractTargetCoordinates(Geometry g)
|
static Geometry[] |
snap(Geometry g0,
Geometry g1,
double snapTolerance)
Snaps two geometries together with a given tolerance. |
Geometry |
snapTo(Geometry g,
double snapTolerance)
Snaps the vertices in the component LineStrings
of the source geometry
to the vertices of the given geometry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeometrySnapper(Geometry g)
| Method Detail |
public static double computeOverlaySnapTolerance(Geometry g)
g - a Geometry
public static double computeSizeBasedSnapTolerance(Geometry g)
public static double computeOverlaySnapTolerance(Geometry g0,
Geometry g1)
public static Geometry[] snap(Geometry g0,
Geometry g1,
double snapTolerance)
g0 - a geometry to snapg1 - a geometry to snapsnapTolerance - the tolerance to use
public Geometry snapTo(Geometry g,
double snapTolerance)
LineStrings
of the source geometry
to the vertices of the given geometry.
g -
public Coordinate[] extractTargetCoordinates(Geometry g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||