[SCM] PostGIS branch stable-3.2 updated. 3.2.7-6-gc9d05de98
git at osgeo.org
git at osgeo.org
Tue Mar 5 14:07:58 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.2 has been updated
via c9d05de988477a92c0f51e4675f88c6300c06627 (commit)
from 98d112ff7f17913d35f07300d22f4864ee0bc6b6 (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 c9d05de988477a92c0f51e4675f88c6300c06627
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Mar 5 14:07:57 2024 -0800
ST_NumInteriorRings for Triangle, references #5686
diff --git a/NEWS b/NEWS
index 61a1aebea..08e4aa8d9 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ PostGIS 3.2.8
- #5677, ST_Union(geom[]) should unary union single entry arrays (Paul Ramsey)
- #5589, ST_3DDistance error for shared first point (Paul Ramsey)
+ - #5686, ST_NumInteriorRings and Triangle crash (Paul Ramsey)
PostGIS 3.2.7
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