GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
GRASS Programmer's Manual
GRASS GIS 6 Programmer's Manual
GRASS wxPython-based GUI
GRASS cluster analysis statistics Library
GRASS DBMI DataBase Management Interface
GRASS Display Library
GRASS Grid3D raster volume Library
GRASS GIS Library
GRASS Numerical math interface
GRASS partial differential equations Library (GPDE)
GRASS Imagery Library
GRASS Nviz Library
GRASS openGL gsurf OGSF Library
GRASS and the PROJ4 projection library
GRASS Python Scripting Library
GRASS Raster Graphics Library
GRASS Segment Library
Directed Graph Library
GRASS Network Analysis Library
GRASS 6 Vector Architecture
GRASS Vedit Library
Todo List
Bug List
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
vector/Vlib/type.c
Go to the documentation of this file.
1
20
#include <grass/gis.h>
21
#include <grass/Vect.h>
22
31
int
Vect_option_to_types
(
struct
Option *type_opt)
32
{
33
int
i = 0;
34
int
type
= 0;
35
36
while
(type_opt->answers[i]) {
37
switch
(type_opt->answers[i][0]) {
38
case
'p'
:
39
type |= GV_POINT;
40
break
;
41
case
'l'
:
42
type |= GV_LINE;
43
break
;
44
case
'b'
:
45
type |= GV_BOUNDARY;
46
break
;
47
case
'c'
:
48
type |= GV_CENTROID;
49
break
;
50
case
'f'
:
51
type |= GV_FACE;
52
break
;
53
case
'k'
:
54
type |= GV_KERNEL;
55
break
;
56
case
'a'
:
57
type |= GV_AREA;
58
break
;
59
case
'v'
:
60
type |= GV_VOLUME;
61
break
;
62
}
63
i++;
64
}
65
66
return
type
;
67
}
Vect_option_to_types
int Vect_option_to_types(struct Option *type_opt)
Get types from options.
Definition:
vector/Vlib/type.c:31
dialogs.type
type
Definition:
psmap/dialogs.py:2331
lib
vector
Vlib
type.c
Generated on Sat Jan 2 2016 01:46:49 for GRASS Programmer's Manual by
1.8.5