21#ifndef GEOS_OP_POLYGONIZE_POLYGONIZER_H
22#define GEOS_OP_POLYGONIZE_POLYGONIZER_H
24#include <geos/export.h>
25#include <geos/geom/GeometryComponentFilter.h>
31#pragma warning(disable: 4251)
42 namespace polygonize {
87 LineStringAdder lineStringAdder;
101 void findValidRings(
const std::vector<EdgeRing*>& edgeRingList,
102 std::vector<EdgeRing*>& validEdgeRingList,
103 std::vector<geom::LineString*>& invalidRingList);
105 void findShellsAndHoles(
const std::vector<EdgeRing*>& edgeRingList);
107 static void assignHolesToShells(
const std::vector<EdgeRing*>& holeList,
108 std::vector<EdgeRing*>& shellList);
110 static void assignHoleToShell(
EdgeRing *holeER,
111 std::vector<EdgeRing*>& shellList);
118 std::vector<const geom::LineString*> dangles;
119 std::vector<const geom::LineString*> cutEdges;
120 std::vector<geom::LineString*> invalidRingLines;
122 std::vector<EdgeRing*> holeList;
123 std::vector<EdgeRing*> shellList;
124 std::vector<geom::Polygon*> *polyList;
144 void add(std::vector<geom::Geometry*> *geomList);
154 void add(std::vector<const geom::Geometry*> *geomList);
215friend class Polygonizer::LineStringAdder;
Definition GeometryComponentFilter.h:43
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Definition LineString.h:70
Represents a linear polygon, which may include holes.
Definition Polygon.h:67
Represents a ring of PolygonizeDirectedEdge which form a ring of a polygon. The ring may be either an...
Definition operation/polygonize/EdgeRing.h:57
Represents a planar graph of edges that can be used to compute a polygonization, and implements the a...
Definition PolygonizeGraph.h:69
const std::vector< const geom::LineString * > & getDangles()
Get the list of dangling lines found during polygonization.
void add(std::vector< const geom::Geometry * > *geomList)
Add a collection of geometries to be polygonized. May be called multiple times. Any dimension of Geom...
std::vector< geom::Polygon * > * getPolygons()
Gets the list of polygons formed by the polygonization.
void add(const geom::Geometry *g)
void add(geom::Geometry *g)
const std::vector< const geom::LineString * > & getCutEdges()
Get the list of cut edges found during polygonization.
const std::vector< geom::LineString * > & getInvalidRingLines()
Get the list of lines forming invalid rings found during polygonization.
Polygonizer()
Create a polygonizer with the same GeometryFactory as the input Geometry.
void add(std::vector< geom::Geometry * > *geomList)
Add a collection of geometries to be polygonized. May be called multiple times. Any dimension of Geom...
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25