From ee973cfc1465a44119bf69b20bb677b76b3dd238 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 28 Oct 2009 23:05:09 +0000 Subject: [PATCH] Note why the penalty function was changed. git-svn-id: http://svn.osgeo.org/postgis/trunk@4694 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geography_gist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgis/geography_gist.c b/postgis/geography_gist.c index f0ed8c320..5eec1ad47 100644 --- a/postgis/geography_gist.c +++ b/postgis/geography_gist.c @@ -868,6 +868,9 @@ Datum geography_gist_penalty(PG_FUNCTION_ARGS) *result = size_union - size_orig; /* All things being equal, we prefer to expand small boxes rather than large boxes. + NOTE: This code seemed to be causing badly balanced trees to be built + and therefore has been commented out. Not sure why it didn't work, + but it didn't. if( FP_IS_ZERO(*result) ) if( FP_IS_ZERO(size_orig) ) *result = 0.0; -- 2.50.1