[SCM] PostGIS branch stable-3.4 updated. 3.4.2-9-g31722bfdc

git at osgeo.org git at osgeo.org
Tue Mar 5 14:07:36 PST 2024


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, stable-3.4 has been updated
       via  31722bfdc04e353f9c94b53402aecc9d0f142c2c (commit)
      from  94e5b95d506a157d4190ba6faf86dfd3cd258163 (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 31722bfdc04e353f9c94b53402aecc9d0f142c2c
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Mar 5 14:07:35 2024 -0800

    ST_NumInteriorRings for Triangle, references #5686

diff --git a/NEWS b/NEWS
index 86be2e979..21350ed95 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ To take advantage of all SFCGAL featurs, SFCGAL 1.4.1+ is needed.
  - #5680, Fix populate_topology_layer with standard_conforming_strings
           set to off (Sandro Santilli)
  - #5589, ST_3DDistance error for shared first point (Paul Ramsey)
+ - #5686, ST_NumInteriorRings and Triangle crash (Paul Ramsey)
 
 
 PostGIS 3.4.2
diff --git a/postgis/lwgeom_ogc.c b/postgis/lwgeom_ogc.c
index 6ba0c1ac7..c46993a80 100644
--- a/postgis/lwgeom_ogc.c
+++ b/postgis/lwgeom_ogc.c
@@ -437,7 +437,7 @@ Datum LWGEOM_numinteriorrings_polygon(PG_FUNCTION_ARGS)
 	}
 
 	lwgeom = lwgeom_from_gserialized(geom);
-	if ( lwgeom_is_empty(lwgeom) )
+	if ( lwgeom_is_empty(lwgeom) || type == TRIANGLETYPE )
 	{
 		result = 0;
 	}

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

Summary of changes:
 NEWS                 | 1 +
 postgis/lwgeom_ogc.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list