Class UnmatchedEdgeExtracter


  • public class UnmatchedEdgeExtracter
    extends Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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)  
    • Constructor Detail

      • UnmatchedEdgeExtracter

        public UnmatchedEdgeExtracter()
    • 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