Class GraphQuality


  • public class GraphQuality
    extends Object
    • Field Detail

      • LOGGER

        public static final org.apache.logging.log4j.Logger LOGGER
    • Constructor Detail

      • GraphQuality

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