]> granicus.if.org Git - postgis/commitdiff
#3356, ensure that geographies coming in from text do have boxes calculated
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 14:33:59 +0000 (14:33 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 14:33:59 +0000 (14:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14359 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom.c

index f07b4ac15d2bcd08dcb193eebfd0c48b6bd6f89b..3ef67d06f1cd200c4b9e761e801d02b4e2c84c9f 100644 (file)
@@ -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;