com.vividsolutions.jump.qa.diff
Class UnmatchedEdgeExtracter

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

public class UnmatchedEdgeExtracter
extends java.lang.Object


Constructor Summary
UnmatchedEdgeExtracter()
           
 
Method Summary
 void add(com.vividsolutions.jts.geom.Coordinate[] coord)
           
 void add(com.vividsolutions.jts.geom.Geometry geom)
           
 void add(com.vividsolutions.jts.geom.LineString line)
           
 void add(java.util.List coordArrays)
           
 void getDiffEdges(com.vividsolutions.jts.geom.Geometry geom, java.util.List edgeList)
          Compute a list of all subsequences of segments in the LineString line which do not appear in the map.
 void getUnmatchedEdges(com.vividsolutions.jts.geom.Geometry geom, java.util.List edgeList)
          Compute a list of all subsequences of segments in the LineString line which appear in the line only once.
 int getUnmatchedSequenceEnd(com.vividsolutions.jts.geom.Coordinate[] coord, int start)
          If no sequence matches, the value returned is equal to start
 boolean isMatched(com.vividsolutions.jts.geom.LineSegment lineseg)
          This function operates in two different modes depending on the value of isDiff.
static com.vividsolutions.jts.geom.LineString toLinestring(com.vividsolutions.jts.geom.LineSegment lineseg, com.vividsolutions.jts.geom.GeometryFactory fact)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmatchedEdgeExtracter

public UnmatchedEdgeExtracter()
Method Detail

toLinestring

public static com.vividsolutions.jts.geom.LineString toLinestring(com.vividsolutions.jts.geom.LineSegment lineseg,
                                                                  com.vividsolutions.jts.geom.GeometryFactory fact)

add

public void add(com.vividsolutions.jts.geom.Geometry geom)

add

public void add(com.vividsolutions.jts.geom.LineString line)

add

public void add(java.util.List coordArrays)

add

public void add(com.vividsolutions.jts.geom.Coordinate[] coord)

isMatched

public boolean isMatched(com.vividsolutions.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 -
Returns:
true if the lineseg has a match

getDiffEdges

public void getDiffEdges(com.vividsolutions.jts.geom.Geometry geom,
                         java.util.List edgeList)
Compute a list of all subsequences of segments in the LineString line which do not appear in the map.


getUnmatchedEdges

public void getUnmatchedEdges(com.vividsolutions.jts.geom.Geometry geom,
                              java.util.List edgeList)
Compute a list of all subsequences of segments in the LineString line which appear in the line only once.


getUnmatchedSequenceEnd

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