Fix for column intersection geography queries sometimes returning "lwgeom_get_gbox_ge...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 15 Oct 2009 14:48:01 +0000 (14:48 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 15 Oct 2009 14:48:01 +0000 (14:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4650 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_estimate.c

index 1c6c4fbdd16feeff3c9ee85ed43985160fcc4364..86a980e7d4dfc0c87f6f72a08023ccf9e096b44d 100644 (file)
@@ -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");