From 2e43836409948065d2b148edf1b69ed24310ad43 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 24 Nov 2010 01:09:15 +0000 Subject: [PATCH] Inherit gbox flags from lwgeom when calculating. This makes sense. git-svn-id: http://svn.osgeo.org/postgis/trunk@6197 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeodetic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 31ffa728b..f061497e4 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -2329,7 +2329,8 @@ int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox) { int result = LW_FAILURE; LWDEBUGF(4, "got type %d", geom->type); - FLAGS_SET_GEODETIC(gbox->flags,1); + + gbox->flags = gflags(FLAGS_GET_Z(geom->flags),FLAGS_GET_M(geom->flags),1); switch (geom->type) {