From: Sandro Santilli Date: Wed, 2 Jun 2004 22:43:54 +0000 (+0000) Subject: handled special case of Inf boxes as GiST keys in picksplit X-Git-Tag: pgis_0_9_1~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=729ec8ba271a856d4ae18706868db6648ca1eb2f;p=postgis handled special case of Inf boxes as GiST keys in picksplit git-svn-id: http://svn.osgeo.org/postgis/trunk@565 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_gist_72.c b/postgis_gist_72.c index 5f61b1c0d..a399dd3a0 100644 --- a/postgis_gist_72.c +++ b/postgis_gist_72.c @@ -11,6 +11,9 @@ * ********************************************************************** * $Log$ + * Revision 1.12 2004/06/02 22:43:54 strk + * handled special case of Inf boxes as GiST keys in picksplit + * * Revision 1.11 2004/04/28 22:26:02 pramsey * Fixed spelling mistake in header text. * @@ -555,8 +558,12 @@ gbox_picksplit(PG_FUNCTION_ARGS) 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); + } else { + if ( posB>posT ) + ADDLIST(listT, unionT, posT,arr[i-1].pos); + else + ADDLIST(listB, unionB, posB,arr[i-1].pos); + } } pfree(arr); }