GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
geos::edgegraph::EdgeGraphBuilder Class Reference

#include <EdgeGraphBuilder.h>

Public Member Functions

 EdgeGraphBuilder ()
 
std::unique_ptr< EdgeGraphgetGraph ()
 
void add (const geom::Geometry *geometry)
 
void add (const geom::LineString *linestring)
 
void add (const geom::GeometryCollection *geometries)
 

Static Public Member Functions

static std::unique_ptr< EdgeGraphbuild (const geom::GeometryCollection *geoms)
 

Private Attributes

std::unique_ptr< EdgeGraphgraph
 

Detailed Description

Builds an edge graph from geometries containing edges.

Author
mdavis

Definition at line 44 of file EdgeGraphBuilder.h.

Constructor & Destructor Documentation

geos::edgegraph::EdgeGraphBuilder::EdgeGraphBuilder ( )
inline

Definition at line 55 of file EdgeGraphBuilder.h.

Member Function Documentation

void geos::edgegraph::EdgeGraphBuilder::add ( const geom::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
geometrygeometry to be added
void geos::edgegraph::EdgeGraphBuilder::add ( const geom::LineString linestring)
void geos::edgegraph::EdgeGraphBuilder::add ( const geom::GeometryCollection geometries)

Adds the edges in a collection of geom::Geometry to the graph. May be called multiple times. Any dimension of Geometry may be added.

Parameters
geometriesthe geometries to be added
static std::unique_ptr<EdgeGraph> geos::edgegraph::EdgeGraphBuilder::build ( const geom::GeometryCollection geoms)
static
std::unique_ptr<EdgeGraph> geos::edgegraph::EdgeGraphBuilder::getGraph ( )

Member Data Documentation

std::unique_ptr<EdgeGraph> geos::edgegraph::EdgeGraphBuilder::graph
private

Definition at line 49 of file EdgeGraphBuilder.h.


The documentation for this class was generated from the following file: