[SCM] PostGIS branch master updated. 3.5.0-289-gf22e2506a

git at osgeo.org git at osgeo.org
Mon Apr 28 02:39:00 PDT 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  f22e2506a02fa17cefece2c6d6399042c3d54946 (commit)
      from  6bbb617ced93dcb96733d534f0e59e846ce8cb08 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f22e2506a02fa17cefece2c6d6399042c3d54946
Author: Jean Felder <jean.felder at oslandia.com>
Date:   Mon Apr 28 10:41:58 2025 +0200

    sfcgal: Adapt to SFCGAL 2.1 API changes
    
    `PolyhedralSurface` and `TriangulatedSurface` are now correctly
    considered as one geometry instead of sometimes a collection of
    polygons or triangles.
    
    Some C API calls introduced during SFCGAL 2.1 development have been
    renamed to reflect that change.
    
    See: https://gitlab.com/sfcgal/SFCGAL/-/merge_requests/461

diff --git a/liblwgeom/lwgeom_sfcgal.c b/liblwgeom/lwgeom_sfcgal.c
index 3447b5639..5868eb929 100644
--- a/liblwgeom/lwgeom_sfcgal.c
+++ b/liblwgeom/lwgeom_sfcgal.c
@@ -26,12 +26,12 @@
 #include <stdio.h>
 
 #if POSTGIS_SFCGAL_VERSION >= 20100
-#define sfcgal_triangulated_surface_num_triangles(g) sfcgal_geometry_num_geometries((g))
-#define sfcgal_triangulated_surface_triangle_n(g,i)  sfcgal_geometry_get_geometry_n((g), (i))
-#define sfcgal_polyhedral_surface_num_polygons(g)    sfcgal_geometry_num_geometries((g))
-#define sfcgal_polyhedral_surface_polygon_n(g,i)     sfcgal_geometry_get_geometry_n((g), (i))
+#define sfcgal_triangulated_surface_num_triangles(g) sfcgal_triangulated_surface_num_patchs((g))
+#define sfcgal_triangulated_surface_triangle_n(g,i)  sfcgal_triangulated_surface_patch_n((g), (i))
+#define sfcgal_polyhedral_surface_num_polygons(g)    sfcgal_polyhedral_surface_num_patchs((g))
+#define sfcgal_polyhedral_surface_polygon_n(g,i)     sfcgal_polyhedral_surface_patch_n((g), (i))
 #define sfcgal_geometry_collection_num_geometries(g) sfcgal_geometry_num_geometries((g))
-#define sfcgal_geometry_collection_geometry_n(g,i)   sfcgal_geometry_get_geometry_n((g), (i))
+#define sfcgal_polyhedral_surface_add_polygon(g, p) sfcgal_polyhedral_surface_add_patch((g), (p))
 #endif
 
 

-----------------------------------------------------------------------

Summary of changes:
 liblwgeom/lwgeom_sfcgal.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list