GEOS 3.11.1
|
#include <PolygonHoleJoiner.h>
Public Member Functions | |
PolygonHoleJoiner (const Polygon *p_inputPolygon) | |
std::vector< Coordinate > | compute () |
Static Public Member Functions | |
static std::vector< Coordinate > | join (const Polygon *inputPolygon) |
static std::unique_ptr< Polygon > | joinAsPolygon (const Polygon *inputPolygon) |
Transforms a polygon with holes into a single self-touching (invalid) ring by connecting holes to the exterior shell or to another hole. The holes are added from the lowest upwards. As the resulting shell develops, a hole might be added to what was originally another hole.
There is no attempt to optimize the quality of the join lines. In particular, a hole which already touches at a vertex may be joined at a different vertex.
std::vector< Coordinate > geos::triangulate::polygon::PolygonHoleJoiner::compute | ( | ) |
Computes the joined ring.