From c446e4711d93766f18456c42bcedddc4f3fbd125 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Sun, 11 Oct 2009 02:03:13 +0000 Subject: [PATCH] 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 --- liblwgeom/g_serialized.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.50.1