]> granicus.if.org Git - postgis/commitdiff
reverted Inf handling modification (conceptually bogus)
authorSandro Santilli <strk@keybit.net>
Wed, 2 Jun 2004 23:29:08 +0000 (23:29 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 2 Jun 2004 23:29:08 +0000 (23:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@566 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_gist_72.c

index a399dd3a00980b198e219bf9c0d123131e566ab1..d87efdfe4d208f28df5be8e79c80d7da8f24d99d 100644 (file)
@@ -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);
        }