]> granicus.if.org Git - postgis/commitdiff
Don't copy bboxes from lwgeom to gserialized when working with geodetics. (#263)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 11 Oct 2009 02:03:13 +0000 (02:03 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sun, 11 Oct 2009 02:03:13 +0000 (02:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4640 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/g_serialized.c

index 0c0c8e67efac1af363a96c9566a4d8995f6dda52..cf4df026a866998c8009d78f108ba2165e0bdb0b 100644 (file)
@@ -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));