Package com.vividsolutions.jump.qa.diff
Class UnmatchedEdgeExtracter
- java.lang.Object
-
- com.vividsolutions.jump.qa.diff.UnmatchedEdgeExtracter
-
public class UnmatchedEdgeExtracter extends Object
-
-
Constructor Summary
Constructors Constructor Description UnmatchedEdgeExtracter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(List<org.locationtech.jts.geom.Coordinate[]> coordArrays)voidadd(org.locationtech.jts.geom.Coordinate[] coord)voidadd(org.locationtech.jts.geom.Geometry geom)voidadd(org.locationtech.jts.geom.LineString line)voidgetDiffEdges(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.voidgetUnmatchedEdges(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.intgetUnmatchedSequenceEnd(org.locationtech.jts.geom.Coordinate[] coord, int start)If no sequence matches, the value returned is equal to startbooleanisMatched(org.locationtech.jts.geom.LineSegment lineseg)This function operates in two different modes depending on the value of isDiff.static org.locationtech.jts.geom.LineStringtoLinestring(org.locationtech.jts.geom.LineSegment lineseg, org.locationtech.jts.geom.GeometryFactory fact)
-
-
-
Method Detail
-
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
-
-