Class EdgeGraphBuilder
java.lang.Object
org.locationtech.jts.edgegraph.EdgeGraphBuilder
Builds an edge graph from geometries containing edges.
- Author:
- mdavis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Collection geometries) Adds the edges in a collection ofGeometrys to the graph.voidAdds the edges of a Geometry to the graph.static EdgeGraphbuild(Collection geoms) getGraph()
-
Constructor Details
-
EdgeGraphBuilder
public EdgeGraphBuilder()
-
-
Method Details
-
build
-
getGraph
-
add
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
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
-