[SCM] PostGIS branch master updated. 3.5.0-251-ga8e0a85ba
git at osgeo.org
git at osgeo.org
Tue Apr 8 15:46:01 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 a8e0a85ba540491135e3f4b427b7cdc649e7fe48 (commit)
from 210ef2b69d5eff991321a7dd9c0c4ab54fd4780f (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 a8e0a85ba540491135e3f4b427b7cdc649e7fe48
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Apr 8 15:38:34 2025 -0700
Version guard for API changes in SFCGAL 2+
diff --git a/liblwgeom/lwgeom_sfcgal.c b/liblwgeom/lwgeom_sfcgal.c
index 844fc202f..5c85513be 100644
--- a/liblwgeom/lwgeom_sfcgal.c
+++ b/liblwgeom/lwgeom_sfcgal.c
@@ -25,6 +25,16 @@
#include "lwgeom_sfcgal.h"
#include <stdio.h>
+#if POSTGIS_SFCGAL_VERSION >= 20000
+#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_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))
+#endif
+
+
static int SFCGAL_type_to_lwgeom_type(sfcgal_geometry_type_t type);
static POINTARRAY *ptarray_from_SFCGAL(const sfcgal_geometry_t *geom, int force3D);
static sfcgal_geometry_t *ptarray_to_SFCGAL(const POINTARRAY *pa, int type);
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/lwgeom_sfcgal.c | 10 ++++++++++
1 file changed, 10 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list