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