Class GraphBuilder


  • public class GraphBuilder
    extends Object
    Author:
    julien Gaffuri
    • Field Detail

      • LOGGER

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

      • GraphBuilder

        public GraphBuilder()
    • Method Detail

      • buildFromLinearFeaturesNonPlanar

        public static Graph buildFromLinearFeaturesNonPlanar​(Collection<Feature> sections)
        Build graph from sections, by connecting them directly at their tips. This graph is not necessary planar. No faces are built.
        Parameters:
        sections -
        Returns:
      • buildFromLinearGeometriesNonPlanar

        public static Graph buildFromLinearGeometriesNonPlanar​(Collection<org.locationtech.jts.geom.LineString> lines)
        Build graph from lines, by connecting them directly at their tips. This graph is not necessary planar. No faces are built.
        Parameters:
        lines -
        Returns:
      • buildFromLinearFeaturesPlanar

        public static Graph buildFromLinearFeaturesPlanar​(Collection<Feature> sections,
                                                          boolean buildFaces)
        Build planar graph from sections.
        Parameters:
        sections -
        Returns:
      • buildFromLinearGeometriesPlanar

        public static Graph buildFromLinearGeometriesPlanar​(Collection<org.locationtech.jts.geom.LineString> geoms,
                                                            boolean buildFaces)
      • buildForTesselation

        public static Graph buildForTesselation​(Collection<org.locationtech.jts.geom.MultiPolygon> geoms)
      • buildForTesselation

        public static Graph buildForTesselation​(Collection<org.locationtech.jts.geom.MultiPolygon> geoms,
                                                org.locationtech.jts.geom.Envelope env)