Package org.locationtech.jts.edgegraph
Class EdgeGraphBuilder
java.lang.Object
org.locationtech.jts.edgegraph.EdgeGraphBuilder
Builds an edge graph from geometries containing edges.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Collection geometries) Adds the edges in a collection ofGeometry
s to the graph.void
Adds the edges of a Geometry to the graph.private void
add
(LineString lineString) static EdgeGraph
build
(Collection geoms) getGraph()
-
Field Details
-
graph
-
-
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 ofGeometry
s to the graph. May be called multiple times. Any dimension of Geometry may be added.- Parameters:
geometries
- the geometries to be added
-
add
-