Class EdgeGraphBuilder

java.lang.Object
org.locationtech.jts.edgegraph.EdgeGraphBuilder

public class EdgeGraphBuilder extends Object
Builds an edge graph from geometries containing edges.
Author:
mdavis
  • Constructor Details

    • EdgeGraphBuilder

      public EdgeGraphBuilder()
  • Method Details

    • build

      public static EdgeGraph build(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(Collection geometries)
      Adds the edges in a collection of Geometrys to the graph. May be called multiple times. Any dimension of Geometry may be added.
      Parameters:
      geometries - the geometries to be added