From a7b8a70edf9c45edd658c7917cbe46d6a7f892c3 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Thu, 15 Oct 2009 14:48:01 +0000 Subject: [PATCH] Fix for column intersection geography queries sometimes returning "lwgeom_get_gbox_geodetic: non-geodetic gbox provided" during execution - a missing initialisation bug. git-svn-id: http://svn.osgeo.org/postgis/trunk@4650 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geography_estimate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/postgis/geography_estimate.c b/postgis/geography_estimate.c index 1c6c4fbdd..86a980e7d 100644 --- a/postgis/geography_estimate.c +++ b/postgis/geography_estimate.c @@ -507,6 +507,7 @@ Datum geography_gist_selectivity(PG_FUNCTION_ARGS) geometry = lwgeom_from_gserialized(serialized); /* Convert coordinates to 3D geodesic */ + search_box.flags = FLAGS_SET_GEODETIC(search_box.flags, 1); if (!lwgeom_calculate_gbox_geodetic(geometry, &search_box)) { POSTGIS_DEBUG(3, " search box cannot be calculated"); -- 2.50.1