GEOS  3.8.0dev
Public Member Functions | List of all members
geos::operation::overlay::PolygonBuilder Class Reference

Forms Polygon out of a graph of geomgraph::DirectedEdge. More...

#include <PolygonBuilder.h>

Public Member Functions

 PolygonBuilder (const geom::GeometryFactory *newGeometryFactory)
 
void add (geomgraph::PlanarGraph *graph)
 
void add (const std::vector< geomgraph::DirectedEdge * > *dirEdges, const std::vector< geomgraph::Node * > *nodes)
 
std::vector< geom::Geometry * > * getPolygons ()
 

Detailed Description

Forms Polygon out of a graph of geomgraph::DirectedEdge.

The edges to use are marked as being in the result Area.

Member Function Documentation

void geos::operation::overlay::PolygonBuilder::add ( geomgraph::PlanarGraph graph)

Add a complete graph. The graph is assumed to contain one or more polygons, possibly with holes.

void geos::operation::overlay::PolygonBuilder::add ( const std::vector< geomgraph::DirectedEdge * > *  dirEdges,
const std::vector< geomgraph::Node * > *  nodes 
)

Add a set of edges and nodes, which form a graph. The graph is assumed to contain one or more polygons, possibly with holes.


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