Skip to content

Instantly share code, notes, and snippets.


Bruno Willenborg BWibo

View GitHub Profile
BWibo /
Created October 12, 2018 09:53
SFCGAL constraint delaunay triangulation

Constraint Delaunay Triangulation for PostGIS using SFCGAL

As discussed in this StackExchange question, there is a function available in SFCGAL that performs a Constrained Delaunay Triangulation. Some explanation and examples are available here.


There is a secret function available in SFCGAL that just needs to be exposed to use it. Make sure to set the correct PostGIS version in '$libdir/postgis-2.4.