Class GraphSimplify
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.algo.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 Summary
Constructors Constructor Description GraphSimplify()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
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)static Collection<org.locationtech.jts.geom.LineString>
planifyLines(Collection<org.locationtech.jts.geom.LineString> lines)
static Collection<org.locationtech.jts.geom.LineString>
removeSimilarDuplicateEdges(Collection<org.locationtech.jts.geom.LineString> lines, double haussdorffDistance)
static Collection<org.locationtech.jts.geom.LineString>
resPlanifyLines(Collection<org.locationtech.jts.geom.LineString> lines, double res, boolean withRDPFiltering)
-
-
-
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)
-
-