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
This commit is contained in:
Paul Ramsey 2010-11-24 01:09:15 +00:00
parent c692cf3eed
commit 2e43836409

View file

@ -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)
{