[postgis-tickets] r17791 - Fix bbox refresh

Raul raul at rmr.ninja
Thu Aug 29 08:58:17 PDT 2019


Author: algunenano
Date: 2019-08-29 08:58:17 -0700 (Thu, 29 Aug 2019)
New Revision: 17791

Modified:
   branches/2.3/postgis/lwgeom_functions_analytic.c
Log:
Fix bbox refresh 

The function used was introduced in 2.5, so the direct
backport broke the build

Closes #4494


Modified: branches/2.3/postgis/lwgeom_functions_analytic.c
===================================================================
--- branches/2.3/postgis/lwgeom_functions_analytic.c	2019-08-29 15:57:09 UTC (rev 17790)
+++ branches/2.3/postgis/lwgeom_functions_analytic.c	2019-08-29 15:58:17 UTC (rev 17791)
@@ -88,7 +88,10 @@
 
 	/* COMPUTE_BBOX TAINTING */
 	if (in->bbox)
-		lwgeom_refresh_bbox(out);
+	{
+		lwgeom_drop_bbox(out);
+		lwgeom_add_bbox(out);
+	}
 
 	result = geometry_serialize(out);
 	lwgeom_free(out);



More information about the postgis-tickets mailing list