Class GraphQuality
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.algo.GraphQuality
-
public class GraphQuality extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description GraphQuality()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkSectionsIntersection(Collection<Feature> secs)
Check some linear features do not intersect along linear parts.static Collection<Feature>
ensureNodeReduction(Collection<Feature> secs)
static Collection<Feature>
ensureNodeReduction(Collection<Feature> secs, NodeReduction.NodeReductionCriteria nrc)
static Collection<Feature>
fixSectionsIntersection(Collection<Feature> secs)
Fix intersection issue.static Collection<Feature>
fixSectionsIntersectionIterative(Collection<Feature> secs)
static Collection<Feature>
qualityFixForSections(Collection<Feature> secs)
Perform a number of operations on network sections to ensure a clean planar graph can be built from them.
-
-
-
Method Detail
-
qualityFixForSections
public static Collection<Feature> qualityFixForSections(Collection<Feature> secs)
Perform a number of operations on network sections to ensure a clean planar graph can be built from them.- Parameters:
secs
-- Returns:
-
ensureNodeReduction
public static Collection<Feature> ensureNodeReduction(Collection<Feature> secs)
-
ensureNodeReduction
public static Collection<Feature> ensureNodeReduction(Collection<Feature> secs, NodeReduction.NodeReductionCriteria nrc)
-
checkSectionsIntersection
public static void checkSectionsIntersection(Collection<Feature> secs)
Check some linear features do not intersect along linear parts. This should be avoided to build a planar network.- Parameters:
secs
-
-
fixSectionsIntersection
public static Collection<Feature> fixSectionsIntersection(Collection<Feature> secs)
Fix intersection issue. If sections are fully overlapped by other, they might be removed. The list of remaining sections with non-empty geometries is returned. These geometries might be multilinestring. To get only simple geometries, use FeatureUtil.getFeaturesWithSimpleGeometrie- Parameters:
secs
-- Returns:
-
fixSectionsIntersectionIterative
public static Collection<Feature> fixSectionsIntersectionIterative(Collection<Feature> secs)
-
-