[SCM] PostGIS branch master updated. 3.7.0alpha1-88-gd6486e89a

git at osgeo.org git at osgeo.org
Thu Jul 9 08:43:31 PDT 2026


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  d6486e89ade1b46f08f7bd56518cb71ff7b731fa (commit)
      from  b83955d009004ae2cf307c3cffbfbdd9a8bb06e6 (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 d6486e89ade1b46f08f7bd56518cb71ff7b731fa
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Thu Jul 9 19:29:11 2026 +0400

    topology: free overlay split helper inputs
    
    Free the owning geometries created by the overlay split helper with the normal liblwgeom destructors. Also document the current SFCGAL, GEOS raster, and GDAL logging contracts that made related scanner findings non-issues, and fix the fixedoverlay test GEOS-version helper.

diff --git a/liblwgeom/topo/lwgeom_topo.c b/liblwgeom/topo/lwgeom_topo.c
index a8d00c108..108174564 100644
--- a/liblwgeom/topo/lwgeom_topo.c
+++ b/liblwgeom/topo/lwgeom_topo.c
@@ -7422,9 +7422,9 @@ _lwt_overlay_split_points(const LWGEOM *xset)
     lwgeom_free(bnd);
   }
 
-  lwcollection_release(epoints);
-  lwcollection_release(lines);
-  lwgeom_release(multi);
+  lwcollection_free(epoints);
+  lwcollection_free(lines);
+  lwgeom_free(multi);
 
   points->srid = xset->srid;
   return lwcollection_as_lwgeom(points);
diff --git a/raster/rt_core/rt_spatial_relationship.c b/raster/rt_core/rt_spatial_relationship.c
index a71ce179e..0388a8ff1 100644
--- a/raster/rt_core/rt_spatial_relationship.c
+++ b/raster/rt_core/rt_spatial_relationship.c
@@ -1334,7 +1334,8 @@ rt_raster_intersection_fractions(
 
 	/* Shallow clone a new raster with no bands */
 	rast_out = rt_raster_clone(rast_in, 0);
-	/* Add a float4 band matching GEOSGridIntersectionFractions' float buffer */
+	/* GEOSGridIntersectionFractions writes float values into float* buf,
+	 * so the output band must stay PT_32BF rather than PT_64BF. */
 	band_num = rt_raster_generate_new_band(
 		rast_out, /* rast */
 		PT_32BF, /* pixel type */
diff --git a/raster/rt_pg/rtpg_gdal.c b/raster/rt_pg/rtpg_gdal.c
index 41f357f8c..1c10aa1e0 100644
--- a/raster/rt_pg/rtpg_gdal.c
+++ b/raster/rt_pg/rtpg_gdal.c
@@ -1171,6 +1171,8 @@ ogrErrorHandler(CPLErr eErrClass, int err_no, const char* msg)
     const char* gdalErrType = "unknown type";
     char *redacted = pstrdup(msg ? msg : "");
 
+    /* GDAL debug/error text can include VSI URLs, headers, or tokens.
+     * Always redact before forwarding messages to PostgreSQL clients/logs. */
     rtpg_gdal_redact_message(redacted);
 
     if (err_no >= 0 && err_no < gdalErrorTypesSize)
diff --git a/regress/core/fixedoverlay.sql b/regress/core/fixedoverlay.sql
index 2377f5667..b41b73ce6 100644
--- a/regress/core/fixedoverlay.sql
+++ b/regress/core/fixedoverlay.sql
@@ -1,7 +1,7 @@
 CREATE OR REPLACE FUNCTION geos_version()
 RETURNS integer AS $$
     SELECT (matches[1]::integer * 100) + matches[2]::integer
-    FROM regexp_match(postgis_geos_version(), E'^([0-9]+)]\\.([0-9]+)') AS matches;
+    FROM regexp_match(postgis_geos_version(), E'^([0-9]+)\\.([0-9]+)') AS matches;
 $$ LANGUAGE 'sql' IMMUTABLE;
 
 SELECT 'intersection', ST_AsText(ST_Intersection(
diff --git a/sfcgal/lwgeom_sfcgal.c b/sfcgal/lwgeom_sfcgal.c
index e33c92fa3..11a581e7d 100644
--- a/sfcgal/lwgeom_sfcgal.c
+++ b/sfcgal/lwgeom_sfcgal.c
@@ -2148,6 +2148,8 @@ sfcgal_generate_roof(PG_FUNCTION_ARGS)
 	geom = POSTGIS2SFCGALGeometry(input);
 	PG_FREE_IF_COPY(input, 0);
 
+	/* SFCGAL's generic C API orders slope_angle before height, unlike
+	 * PostGIS SQL and the specialized roof wrappers. */
 	result = sfcgal_geometry_generate_roof(geom, roof_type, slope_angle, height, (size_t)primary_edge_index);
 	sfcgal_geometry_delete(geom);
 

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

Summary of changes:
 liblwgeom/topo/lwgeom_topo.c             | 6 +++---
 raster/rt_core/rt_spatial_relationship.c | 3 ++-
 raster/rt_pg/rtpg_gdal.c                 | 2 ++
 regress/core/fixedoverlay.sql            | 2 +-
 sfcgal/lwgeom_sfcgal.c                   | 2 ++
 5 files changed, 10 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list