Class TopologyStretcher
java.lang.Object
org.locationtech.jtstest.testbuilder.topostretch.TopologyStretcher
Stretches the vertices and segments of a @link Geometry}
to make the topology more visible.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List
extractLineStrings
(Geometry[] geom, Envelope mask) private Map
getCoordinateMoves
(List nearVerts) List[]
Gets theCoordinate
s in each stretched geometry which were modified (if any).int
numVerticesInMask
(Envelope mask) Geometry[]
stretch
(double nearnessTol, double stretchDistance) Geometry[]
-
Field Details
-
stretchDistance
private double stretchDistance -
inputGeoms
-
linestrings
-
modifiedCoords
-
-
Constructor Details
-
TopologyStretcher
-
TopologyStretcher
-
-
Method Details
-
numVerticesInMask
-
stretch
-
stretch
-
getModifiedCoordinates
Gets theCoordinate
s in each stretched geometry which were modified (if any).- Returns:
- lists of Coordinates, one for each input geometry
-
extractLineStrings
-
getCoordinateMoves
-