Package org.meteoinfo.jts.edgegraph
Class EdgeGraphBuilder
- java.lang.Object
-
- org.meteoinfo.jts.edgegraph.EdgeGraphBuilder
-
public class EdgeGraphBuilder extends java.lang.ObjectBuilds an edge graph from geometries containing edges.
-
-
Constructor Summary
Constructors Constructor Description EdgeGraphBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.util.Collection geometries)Adds the edges in a collection ofGeometrys to the graph.voidadd(Geometry geometry)Adds the edges of a Geometry to the graph.static EdgeGraphbuild(java.util.Collection geoms)EdgeGraphgetGraph()
-
-
-
Method Detail
-
build
public static EdgeGraph build(java.util.Collection geoms)
-
getGraph
public EdgeGraph getGraph()
-
add
public void add(Geometry geometry)
Adds the edges of a Geometry to the graph. May be called multiple times. Any dimension of Geometry may be added; the constituent edges are extracted.- Parameters:
geometry- geometry to be added
-
add
public void add(java.util.Collection geometries)
Adds the edges in a collection ofGeometrys to the graph. May be called multiple times. Any dimension of Geometry may be added.- Parameters:
geometries- the geometries to be added
-
-