From: Raúl Marín Rodríguez Date: Thu, 29 Aug 2019 15:58:17 +0000 (+0000) Subject: Fix bbox refresh X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fe328566027988b5354a8004d4ccf30aa00dc8a;p=postgis 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 --- 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);