GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
card.c
Go to the documentation of this file.
1
2
/****************************************************************************
3
* MODULE: R-Tree library
4
*
5
* AUTHOR(S): Antonin Guttman - original code
6
* Daniel Green (green@superliminal.com) - major clean-up
7
* and implementation of bounding spheres
8
*
9
* PURPOSE: Multidimensional index
10
*
11
* COPYRIGHT: (C) 2001 by the GRASS Development Team
12
*
13
* This program is free software under the GNU General Public
14
* License (>=v2). Read the file COPYING that comes with GRASS
15
* for details.
16
*****************************************************************************/
17
18
#include "
index.h
"
19
#include "
card.h
"
20
21
int
NODECARD
=
MAXCARD
;
22
int
LEAFCARD
=
MAXCARD
;
23
24
static
int
set_max(
int
*which,
int
new_max)
25
{
26
if
(2 > new_max || new_max >
MAXCARD
)
27
return
0;
28
*which = new_max;
29
return
1;
30
}
31
32
int
RTreeSetNodeMax
(
int
new_max)
33
{
34
return
set_max(&
NODECARD
, new_max);
35
}
36
int
RTreeSetLeafMax
(
int
new_max)
37
{
38
return
set_max(&
LEAFCARD
, new_max);
39
}
40
int
RTreeGetNodeMax
(
void
)
41
{
42
return
NODECARD
;
43
}
44
int
RTreeGetLeafMax
(
void
)
45
{
46
return
LEAFCARD
;
47
}
lib
vector
rtree
card.c
Generated on Sun Sep 9 2012 18:55:30 for GRASS Programmer's Manual by
1.8.1.2