From: Paul Ramsey Date: Sun, 11 Oct 2009 02:03:13 +0000 (+0000) Subject: Don't copy bboxes from lwgeom to gserialized when working with geodetics. (#263) X-Git-Tag: 1.5.0b1~375 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c446e4711d93766f18456c42bcedddc4f3fbd125;p=postgis Don't copy bboxes from lwgeom to gserialized when working with geodetics. (#263) git-svn-id: http://svn.osgeo.org/postgis/trunk@4640 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/g_serialized.c b/liblwgeom/g_serialized.c index 0c0c8e67e..cf4df026a 100644 --- a/liblwgeom/g_serialized.c +++ b/liblwgeom/g_serialized.c @@ -863,7 +863,7 @@ LWGEOM* lwgeom_from_gserialized(GSERIALIZED *g) lwgeom->type = lwgeom_makeType_full(FLAGS_GET_Z(g_flags), FLAGS_GET_M(g_flags), has_srid, g_type, FLAGS_GET_BBOX(g_flags)); - if( FLAGS_GET_BBOX(g_flags) ) + if( FLAGS_GET_BBOX(g_flags) && ! FLAGS_GET_GEODETIC(g_flags) ) { float *fptr = (float*)g->data; BOX2DFLOAT4 *bbox = lwalloc(sizeof(BOX2DFLOAT4));