[SCM] PostGIS branch stable-3.3 updated. 3.3.6-9-g1787c2d80
git at osgeo.org
git at osgeo.org
Tue Mar 5 14:07:52 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.3 has been updated
via 1787c2d80e5e1e38acf0d81e6f7f319a94524c5a (commit)
from 5c276bc0cd64c159c07ab8b6c0bcb9d5ea37815f (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 1787c2d80e5e1e38acf0d81e6f7f319a94524c5a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Mar 5 14:07:51 2024 -0800
ST_NumInteriorRings for Triangle, references #5686
diff --git a/NEWS b/NEWS
index 5f139d44e..ead91bc60 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ xxxx/xx/xx
- #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.3.6
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