Class TopologyStretcher


  • public class TopologyStretcher
    extends java.lang.Object
    Stretches the vertices and segments of a @link Geometry} to make the topology more visible.
    • Field Detail

      • stretchDistance

        private double stretchDistance
      • inputGeoms

        private Geometry[] inputGeoms
      • linestrings

        private java.util.List linestrings
      • modifiedCoords

        private java.util.List[] modifiedCoords
    • Constructor Detail

      • TopologyStretcher

        public TopologyStretcher​(Geometry g)
    • Method Detail

      • numVerticesInMask

        public int numVerticesInMask​(Envelope mask)
      • stretch

        public Geometry[] stretch​(double nearnessTol,
                                  double stretchDistance)
      • stretch

        public Geometry[] stretch​(double nearnessTol,
                                  double stretchDistance,
                                  Envelope mask)
      • getModifiedCoordinates

        public java.util.List[] getModifiedCoordinates()
        Gets the Coordinates in each stretched geometry which were modified (if any).
        Returns:
        lists of Coordinates, one for each input geometry
      • extractLineStrings

        private java.util.List extractLineStrings​(Geometry[] geom,
                                                  Envelope mask)
      • getCoordinateMoves

        private java.util.Map getCoordinateMoves​(java.util.List nearVerts)