From: Sandro Santilli Date: Wed, 2 Jun 2004 23:29:08 +0000 (+0000) Subject: reverted Inf handling modification (conceptually bogus) X-Git-Tag: pgis_0_9_1~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e009d6602a10e51bfc56f610485fca514dfa6a9;p=postgis reverted Inf handling modification (conceptually bogus) git-svn-id: http://svn.osgeo.org/postgis/trunk@566 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_gist_72.c b/postgis_gist_72.c index a399dd3a0..d87efdfe4 100644 --- a/postgis_gist_72.c +++ b/postgis_gist_72.c @@ -11,6 +11,9 @@ * ********************************************************************** * $Log$ + * Revision 1.13 2004/06/02 23:29:08 strk + * reverted Inf handling modification (conceptually bogus) + * * Revision 1.12 2004/06/02 22:43:54 strk * handled special case of Inf boxes as GiST keys in picksplit * @@ -524,6 +527,7 @@ gbox_picksplit(PG_FUNCTION_ARGS) ADDLIST(listL, unionL, posL,i); else ADDLIST(listR, unionR, posR,i); + if (cur->low.y - pageunion.low.y < pageunion.high.y - cur->high.y) ADDLIST(listB, unionB, posB,i); else @@ -558,12 +562,8 @@ gbox_picksplit(PG_FUNCTION_ARGS) ADDLIST(listT, unionT, posT,arr[i-1].pos); else ADDLIST(listB, unionB, posB,arr[i-1].pos); - } else { - if ( posB>posT ) - ADDLIST(listT, unionT, posT,arr[i-1].pos); - else - ADDLIST(listB, unionB, posB,arr[i-1].pos); - } + } else + ADDLIST(listT, unionT, posT,arr[i-1].pos); } pfree(arr); }