From 0bc495708619570f962b0f032c0a2394d9cb5fc7 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 6 Nov 2015 15:05:26 +0000 Subject: [PATCH] Back out all fiddling w/ geodetic bboxes, there is no win here git-svn-id: http://svn.osgeo.org/postgis/trunk@14361 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/cu_geodetic.c | 2 +- liblwgeom/lwgeom.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/liblwgeom/cunit/cu_geodetic.c b/liblwgeom/cunit/cu_geodetic.c index 3cd4a3044..51d383dac 100644 --- a/liblwgeom/cunit/cu_geodetic.c +++ b/liblwgeom/cunit/cu_geodetic.c @@ -905,7 +905,7 @@ static void test_gserialized_from_lwgeom(void) type = gserialized_get_type(g); CU_ASSERT_EQUAL( type, POINTTYPE ); inspect = (double*)g; - CU_ASSERT_EQUAL(inspect[6], 0.2); + CU_ASSERT_EQUAL(inspect[3], 0.2); lwgeom_free(geom); lwfree(g); diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index 3ef67d06f..f07b4ac15 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -1103,10 +1103,6 @@ void lwgeom_free(LWGEOM *lwgeom) int lwgeom_needs_bbox(const LWGEOM *geom) { assert(geom); - - if ( FLAGS_GET_GEODETIC(geom->flags) ) - return LW_TRUE; - if ( geom->type == POINTTYPE ) { return LW_FALSE; -- 2.40.0