Class GraphBuilder
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.base.GraphBuilder
-
public class GraphBuilder extends Object
- Author:
- julien Gaffuri
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description GraphBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Graph
buildForTesselation(Collection<org.locationtech.jts.geom.MultiPolygon> geoms)
static Graph
buildForTesselation(Collection<org.locationtech.jts.geom.MultiPolygon> geoms, org.locationtech.jts.geom.Envelope env)
static Graph
buildFromLinearFeaturesNonPlanar(Collection<Feature> sections)
Build graph from sections, by connecting them directly at their tips.static Graph
buildFromLinearFeaturesPlanar(Collection<Feature> sections, boolean buildFaces)
Build planar graph from sections.static Graph
buildFromLinearGeometriesNonPlanar(Collection<org.locationtech.jts.geom.LineString> lines)
Build graph from lines, by connecting them directly at their tips.static Graph
buildFromLinearGeometriesPlanar(Collection<org.locationtech.jts.geom.LineString> geoms, boolean buildFaces)
-
-
-
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)
-
-