From 0fe328566027988b5354a8004d4ccf30aa00dc8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ra=C3=BAl=20Mar=C3=ADn=20Rodr=C3=ADguez?= Date: Thu, 29 Aug 2019 15:58:17 +0000 Subject: [PATCH] Fix bbox refresh The function used was introduced in 2.5, so the direct backport broke the build Closes #4494 git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@17791 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_functions_analytic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c index afcd53098..021ec0a6b 100644 --- a/postgis/lwgeom_functions_analytic.c +++ b/postgis/lwgeom_functions_analytic.c @@ -88,7 +88,10 @@ Datum LWGEOM_simplify2d(PG_FUNCTION_ARGS) /* 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); -- 2.50.0