GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
vector/diglib/type.c
Go to the documentation of this file.
1
17
#include <grass/gis.h>
18
#include <grass/Vect.h>
19
27
int
dig_type_to_store
(
int
type
)
28
{
29
switch
(type) {
30
case
GV_POINT:
31
return
GV_STORE_POINT;
32
case
GV_LINE:
33
return
GV_STORE_LINE;
34
case
GV_BOUNDARY:
35
return
GV_STORE_BOUNDARY;
36
case
GV_CENTROID:
37
return
GV_STORE_CENTROID;
38
case
GV_AREA:
39
return
GV_STORE_AREA;
40
case
GV_FACE:
41
return
GV_STORE_FACE;
42
case
GV_KERNEL:
43
return
GV_STORE_KERNEL;
44
case
GV_VOLUME:
45
return
GV_STORE_VOLUME;
46
default
:
47
return
0;
48
}
49
}
50
58
int
dig_type_from_store
(
int
stype)
59
{
60
switch
(stype) {
61
case
GV_STORE_POINT:
62
return
GV_POINT;
63
case
GV_STORE_LINE:
64
return
GV_LINE;
65
case
GV_STORE_BOUNDARY:
66
return
GV_BOUNDARY;
67
case
GV_STORE_CENTROID:
68
return
GV_CENTROID;
69
case
GV_STORE_AREA:
70
return
GV_AREA;
71
case
GV_STORE_FACE:
72
return
GV_FACE;
73
case
GV_STORE_KERNEL:
74
return
GV_KERNEL;
75
case
GV_STORE_VOLUME:
76
return
GV_VOLUME;
77
default
:
78
return
0;
79
}
80
}
lib
vector
diglib
type.c
Generated on Thu Sep 26 2013 09:48:07 for GRASS Programmer's Manual by
1.8.4