21 #ifndef GEOS_OP_POLYGONIZE_POLYGONIZER_H 22 #define GEOS_OP_POLYGONIZE_POLYGONIZER_H 34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 47 namespace polygonize {
55 namespace polygonize {
111 static void findValidRings(
const std::vector<EdgeRing*>& edgeRingList,
112 std::vector<EdgeRing*>& validEdgeRingList,
113 std::vector<std::unique_ptr<geom::LineString>>& invalidRingList);
115 void findShellsAndHoles(
const std::vector<EdgeRing*>& edgeRingList);
117 void findDisjointShells();
119 static void findOuterShells(std::vector<EdgeRing*>& shellList);
121 static std::vector<std::unique_ptr<geom::Polygon>> extractPolygons(std::vector<EdgeRing*> & shellList,
bool includeAll);
128 std::unique_ptr<PolygonizeGraph>
graph;
137 std::vector<std::unique_ptr<geom::Polygon>>
polyList;
159 void add(std::vector<geom::Geometry*>* geomList);
169 void add(std::vector<const geom::Geometry*>* geomList);
198 std::vector<std::unique_ptr<geom::Polygon>> getPolygons();
207 const std::vector<const geom::LineString*>& getDangles();
218 const std::vector<const geom::LineString*>& getCutEdges();
230 const std::vector<std::unique_ptr<geom::LineString>>& getInvalidRingLines();
232 bool hasInvalidRingLines();
234 bool allInputsFormPolygons();
248 #endif // GEOS_OP_POLYGONIZE_POLYGONIZER_H Polygonizes a set of Geometrys which contain linework that represents the edges of a planar graph...
std::vector< std::unique_ptr< geom::Polygon > > polyList
LineStringAdder lineStringAdder
std::vector< std::unique_ptr< geom::LineString > > invalidRingLines
bool extractOnlyPolygonal
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
std::vector< EdgeRing * > holeList
std::vector< EdgeRing * > shellList
Basic namespace for all GEOS functionalities.
std::vector< const geom::LineString * > cutEdges
std::unique_ptr< PolygonizeGraph > graph
std::vector< const geom::LineString * > dangles