[SCM] PostGIS branch master updated. 3.5.0-356-ge95bdce70

git at osgeo.org git at osgeo.org
Mon Jun 2 11:51:51 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  e95bdce703b9c512590da3c38d95c8156680c822 (commit)
      from  a238dd66e38f3b4e8744501eafeb0930db21683c (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 e95bdce703b9c512590da3c38d95c8156680c822
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jun 2 11:51:37 2025 -0700

    Flip parameters gapMaximumWidth and snappingDistance around.

diff --git a/doc/reference_coverage.xml b/doc/reference_coverage.xml
index cab673ff1..304d7c2e8 100644
--- a/doc/reference_coverage.xml
+++ b/doc/reference_coverage.xml
@@ -342,8 +342,8 @@ MULTIPOLYGON (((10 150, 80 190, 110 150, 140 80, 120 10, 10 10, 10 150), (50 60,
       <title>Description</title>
 
       <para>A window function which alters the edges of a polygonal coverage to ensure that none of the polygons overlap, that small gaps are snapped away, and that all shared edges are exactly identical. The result is a clean coverage that will pass validation tests like <xref linkend="ST_CoverageInvalidEdges"/></para>
-      <para>The <parameter>snappingDistance</parameter> controls the node snapping step, when nearby vertices are snapped together. The default setting (-1) applies an automatic snapping distance based on an analysis of the input. Set to 0.0 to turn off all snapping.</para>
       <para>The <parameter>gapMaximumWidth</parameter> controls the cleaning of gaps between polygons. Gaps smaller than this tolerance will be closed.</para>
+      <para>The <parameter>snappingDistance</parameter> controls the node snapping step, when nearby vertices are snapped together. The default setting (-1) applies an automatic snapping distance based on an analysis of the input. Set to 0.0 to turn off all snapping.</para>
       <para>The <parameter>overlapMergeStrategy</parameter> controls the algorithm used to determine which neighboring polygons to merge overlapping areas into.</para>
       <para><code>MERGE_LONGEST_BORDER</code> chooses polygon with longest common border</para>
       <para><code>MERGE_MAX_AREA</code> chooses polygon with maximum area</para>
diff --git a/postgis/lwgeom_window.c b/postgis/lwgeom_window.c
index f431e4907..e53152631 100644
--- a/postgis/lwgeom_window.c
+++ b/postgis/lwgeom_window.c
@@ -724,10 +724,10 @@ coverage_window_calculation(PG_FUNCTION_ARGS, int mode)
 			GEOSCoverageCleanParams *params = NULL;
 
 			d = WinGetFuncArgCurrent(winobj, 1, &isnull);
-			if (!isnull) snappingDistance = DatumGetFloat8(d);
+			if (!isnull) gapMaximumWidth = DatumGetFloat8(d);
 
 			d = WinGetFuncArgCurrent(winobj, 2, &isnull);
-			if (!isnull) gapMaximumWidth = DatumGetFloat8(d);
+			if (!isnull) snappingDistance = DatumGetFloat8(d);
 
 			d = WinGetFuncArgCurrent(winobj, 3, &isnull);
 			// if (!isnull) overlapMergeStrategy = DatumGetInt32(d);
diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 64dcf343e..998ae2a73 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -4468,7 +4468,7 @@ CREATE OR REPLACE FUNCTION ST_CoverageInvalidEdges (geom geometry, tolerance flo
 	_COST_HIGH;
 
 -- Availability: 3.6.0
-CREATE OR REPLACE FUNCTION ST_CoverageClean (geom geometry, snappingDistance float8 default -1.0, gapMaximumWidth float8 default 0.0, overlapMergeStrategy text default 'MERGE_LONGEST_BORDER')
+CREATE OR REPLACE FUNCTION ST_CoverageClean (geom geometry, gapMaximumWidth float8 default 0.0, snappingDistance float8 default -1.0, overlapMergeStrategy text default 'MERGE_LONGEST_BORDER')
 	RETURNS geometry
 	AS 'MODULE_PATHNAME', 'ST_CoverageClean'
 	LANGUAGE 'c' IMMUTABLE STRICT WINDOW PARALLEL SAFE

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

Summary of changes:
 doc/reference_coverage.xml | 2 +-
 postgis/lwgeom_window.c    | 4 ++--
 postgis/postgis.sql.in     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list