Class TopologyStretcher
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.topostretch.TopologyStretcher
-
public class TopologyStretcher extends java.lang.ObjectStretches 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 classTopologyStretcher.VertexInMaskCountCoordinateFilter
-
Field Summary
Fields Modifier and Type Field Description private Geometry[]inputGeomsprivate java.util.Listlinestringsprivate java.util.List[]modifiedCoordsprivate doublestretchDistance
-
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.ListextractLineStrings(Geometry[] geom, Envelope mask)private java.util.MapgetCoordinateMoves(java.util.List nearVerts)java.util.List[]getModifiedCoordinates()Gets theCoordinates in each stretched geometry which were modified (if any).intnumVerticesInMask(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 theCoordinates 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)
-
-