Class GraphSimplify


  • public class GraphSimplify
    extends Object
    Some functions to simplify linear meshes. The input is a collection of lines, possibly intersecting, which form a mesh to be simplified.
    Author:
    julien Gaffuri
    • Constructor Detail

      • GraphSimplify

        public GraphSimplify()
    • Method Detail

      • lineMerge

        public static <T extends org.locationtech.jts.geom.Geometry> Collection<org.locationtech.jts.geom.LineString> lineMerge​(Collection<T> lines)
        Run JTS line merger (see JTS doc)
        Parameters:
        lines -
        Returns:
      • planifyLines

        public static Collection<org.locationtech.jts.geom.LineString> planifyLines​(Collection<org.locationtech.jts.geom.LineString> lines)
        Parameters:
        lines -
        Returns:
      • removeSimilarDuplicateEdges

        public static Collection<org.locationtech.jts.geom.LineString> removeSimilarDuplicateEdges​(Collection<org.locationtech.jts.geom.LineString> lines,
                                                                                                   double haussdorffDistance)
      • collapseTooShortEdgesAndPlanifyLines

        public static <T extends org.locationtech.jts.geom.Geometry> Collection<org.locationtech.jts.geom.LineString> collapseTooShortEdgesAndPlanifyLines​(Collection<org.locationtech.jts.geom.LineString> lines,
                                                                                                                                                           double res,
                                                                                                                                                           boolean startWithShortestEdge,
                                                                                                                                                           boolean planifyGraph)
      • resPlanifyLines

        public static Collection<org.locationtech.jts.geom.LineString> resPlanifyLines​(Collection<org.locationtech.jts.geom.LineString> lines,
                                                                                       double res,
                                                                                       boolean withRDPFiltering)