Expose GEOSConstrainedDelaunayTriangulation as ST_TriangulatePolygon
|Reported by:||mdavis||Owned by:||pramsey|
GEOS 3.11 has added GEOSConstrainedDelaunayTriangulation to provide Constrained Delaunay Triangulation for polygonal geometry.
How should this be exposed? Existing functions which are similar are both backed by SFGCAL: ST_Tesselate and ST_ConstrainedDelaunayTriangles. However, both of these have some additional functionality which isn't in
GEOSConstrainedDelaunayTriangulation, and both produce TINs only as output. Design options include:
- add a new new function for the GEOS functionality. Perhaps
ST_TriangulatePolygon. This could output either a Polygon collection or a TIN or both (see switch on ST_DelaunayTriangles).
- add a branch to
ST_Tesselateto use GEOS for polygonal inputs. This would be moved to be under Geometry Processing in the doc. But would be nice to allow Polygon collection output, which means adding a flag.