Class UnmatchedEdgeExtracter

java.lang.Object
com.vividsolutions.jump.qa.diff.UnmatchedEdgeExtracter

public class UnmatchedEdgeExtracter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(List<org.locationtech.jts.geom.Coordinate[]> coordArrays)
     
    void
    add(org.locationtech.jts.geom.Coordinate[] coord)
     
    void
    add(org.locationtech.jts.geom.Geometry geom)
     
    void
    add(org.locationtech.jts.geom.LineString line)
     
    void
    getDiffEdges(org.locationtech.jts.geom.Geometry geom, List<org.locationtech.jts.geom.Geometry> edgeList)
    Compute a list of all subsequences of segments in the LineString line which do not appear in the map.
    void
    getUnmatchedEdges(org.locationtech.jts.geom.Geometry geom, List<org.locationtech.jts.geom.Geometry> edgeList)
    Compute a list of all subsequences of segments in the LineString line which appear in the line only once.
    int
    getUnmatchedSequenceEnd(org.locationtech.jts.geom.Coordinate[] coord, int start)
    If no sequence matches, the value returned is equal to start
    boolean
    isMatched(org.locationtech.jts.geom.LineSegment lineseg)
    This function operates in two different modes depending on the value of isDiff.
    static org.locationtech.jts.geom.LineString
    toLinestring(org.locationtech.jts.geom.LineSegment lineseg, org.locationtech.jts.geom.GeometryFactory fact)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnmatchedEdgeExtracter

      public UnmatchedEdgeExtracter()
  • Method Details

    • toLinestring

      public static org.locationtech.jts.geom.LineString toLinestring(org.locationtech.jts.geom.LineSegment lineseg, org.locationtech.jts.geom.GeometryFactory fact)
    • add

      public void add(org.locationtech.jts.geom.Geometry geom)
    • add

      public void add(org.locationtech.jts.geom.LineString line)
    • add

      public void add(List<org.locationtech.jts.geom.Coordinate[]> coordArrays)
    • add

      public void add(org.locationtech.jts.geom.Coordinate[] coord)
    • isMatched

      public boolean isMatched(org.locationtech.jts.geom.LineSegment lineseg)
      This function operates in two different modes depending on the value of isDiff. If isDiff is true, the function returns true if the lineseg is present at all in the map. Is isDiff is false, the function returns true if the lineseg appears more than once in the map.
      Parameters:
      lineseg - the LineSegment to test
      Returns:
      true if the lineseg has a match
    • getDiffEdges

      public void getDiffEdges(org.locationtech.jts.geom.Geometry geom, List<org.locationtech.jts.geom.Geometry> edgeList)
      Compute a list of all subsequences of segments in the LineString line which do not appear in the map.
    • getUnmatchedEdges

      public void getUnmatchedEdges(org.locationtech.jts.geom.Geometry geom, List<org.locationtech.jts.geom.Geometry> edgeList)
      Compute a list of all subsequences of segments in the LineString line which appear in the line only once.
    • getUnmatchedSequenceEnd

      public int getUnmatchedSequenceEnd(org.locationtech.jts.geom.Coordinate[] coord, int start)
      If no sequence matches, the value returned is equal to start