Class PolygonHoleJoiner
java.lang.Object
org.locationtech.jts.triangulate.polygon.PolygonHoleJoiner
Transforms a polygon with holes into a single self-touching (invalid) ring
by joining 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompute()
Computes the joined ring.static Coordinate[]
static Polygon
joinAsPolygon
(Polygon inputPolygon)
-
Constructor Details
-
PolygonHoleJoiner
-
-
Method Details
-
joinAsPolygon
-
join
-
compute
Computes the joined ring.- Returns:
- the points in the joined ring
-