From: Paul Ramsey Date: Fri, 6 Nov 2015 14:33:59 +0000 (+0000) Subject: #3356, ensure that geographies coming in from text do have boxes calculated X-Git-Tag: 2.3.0beta1~393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fea6d70a629e02dc6a829cb3c9f20a1c217fa72;p=postgis #3356, ensure that geographies coming in from text do have boxes calculated git-svn-id: http://svn.osgeo.org/postgis/trunk@14359 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index f07b4ac15..3ef67d06f 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -1103,6 +1103,10 @@ void lwgeom_free(LWGEOM *lwgeom) int lwgeom_needs_bbox(const LWGEOM *geom) { assert(geom); + + if ( FLAGS_GET_GEODETIC(geom->flags) ) + return LW_TRUE; + if ( geom->type == POINTTYPE ) { return LW_FALSE;