Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

State of sfcgal_triangulate in PostGIS #36

Closed
hjanetzek opened this issue Oct 31, 2013 · 5 comments
Closed

State of sfcgal_triangulate in PostGIS #36

hjanetzek opened this issue Oct 31, 2013 · 5 comments

Comments

@hjanetzek
Copy link
Contributor

Is there a reason why lwgeom_sfcgal already includes the code for triangulate_2dz but it is not (yet) exported with with sfcgal.sql?

@vmora
Copy link
Contributor

vmora commented Dec 9, 2014

the triangulate_2dz code has a bug, I'll try and fix it before the next release.

@vmora
Copy link
Contributor

vmora commented Dec 9, 2014

My bad, there is no bug, it is just that, for polygons with holes, the triangles inside holes are not filtered (the filtering function is not called).

@tomvantilburg
Copy link

This would still be a nice feature to have available from postgis. Afaik there are 2 functions that already do triangulation but in different ways. ST_DelaunayTriangulation is unconstrained and only does points while ST_Tesselate only does polygons.

I have it running as st_triangulate2dz, and up to now without bugs.
To activate it in postgis:

CREATE OR REPLACE FUNCTION st_triangulate2dz(geometry)
  RETURNS geometry AS
'$libdir/postgis-2.3', 'sfcgal_triangulate'
  LANGUAGE c IMMUTABLE STRICT
  COST 100;

@Komzpa
Copy link
Contributor

Komzpa commented Oct 13, 2018

PostGIS ticket:
https://trac.osgeo.org/postgis/ticket/4198

@lbartoletti
Copy link
Contributor

ST_ConstrainedDelaunayTriangles (sfcgal.triangulate_2dz) is available in Postgis

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

6 participants