12345678910111213141516171819202122232425262728293031323334 |
- /****************************************************************************
- * MODULE: R-Tree library
- *
- * AUTHOR(S): Antonin Guttman - original code
- * Daniel Green (green@superliminal.com) - major clean-up
- * and implementation of bounding spheres
- * Markus Metz - R*-tree
- *
- * PURPOSE: Multidimensional index
- *
- * COPYRIGHT: (C) 2009 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *****************************************************************************/
- #ifndef __CARD__
- #define __CARD__
- extern int NODECARD;
- extern int LEAFCARD;
- /* balance criteria for node splitting */
- /* NOTE: can be changed if needed. */
- #define MinNodeFill (NODECARD / 2)
- #define MinLeafFill (LEAFCARD / 2)
- #define MAXKIDS(n) ((n)->level > 0 ? NODECARD : LEAFCARD)
- #define MINFILL(n) ((n)->level > 0 ? MinNodeFill : MinLeafFill)
- #endif
|