CG_YMonotonePartition
Name
CG_YMonotonePartition — Computes y-monotone partition of the polygon geometry
Synopsis
geometry
CG_YMonotonePartition
(
geometry
geom
)
;
Description
Computes y-monotone partition of the polygon geometry.
Availability: 3.5.0 - requires SFCGAL >= 1.5.0.
Requires SFCGAL >= 1.5.0
Examples
![]() Y-Monotone Partition (same example As CG_ApproxConvexPartition , CG_GreeneApproxConvexPartition and CG_OptimalConvexPartition ) |
SELECT ST_AsText(CG_YMonotonePartition('POLYGON((156 150,83 181,89 131,148 120,107 61,32 159,0 45,41 86,45 1,177 2,67 24,109 31,170 60,180 110,156 150))'::geometry));
GEOMETRYCOLLECTION(POLYGON((32 159,0 45,41 86,32 159)),POLYGON((107 61,32 159,41 86,45 1,177 2,67 24,109 31,170 60,107 61)),POLYGON((156 150,83 181,89 131,148 120,107 61,170 60,180 110,156 150)))