[SCM] PostGIS branch stable-3.1 updated. 3.1.11-3-ge9437f041

git at osgeo.org git at osgeo.org
Tue Mar 5 14:08:05 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.1 has been updated
       via  e9437f041b415917587144d45f54ac7b4da6ae07 (commit)
      from  4425662aaaa720f023a0ea8fcc0d348b5f6251d5 (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 e9437f041b415917587144d45f54ac7b4da6ae07
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Mar 5 14:08:03 2024 -0800

    ST_NumInteriorRings for Triangle, references #5686

diff --git a/NEWS b/NEWS
index d4ac31f10..939c930f7 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ xxxx/xx/xx
 * Bug Fixes *
 
  - #5589, ST_3DDistance error for shared first point (Paul Ramsey)
+ - #5686, ST_NumInteriorRings and Triangle crash (Paul Ramsey)
 
 
 PostGIS 3.1.11
diff --git a/postgis/lwgeom_ogc.c b/postgis/lwgeom_ogc.c
index 9d2f99498..6abaed39f 100644
--- a/postgis/lwgeom_ogc.c
+++ b/postgis/lwgeom_ogc.c
@@ -432,7 +432,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