GRASS GIS 7 Programmer's Manual
7.0.2(2015)-r00000
Main Page
Related Pages
Data Structures
Files
File List
Globals
proj2.c
Go to the documentation of this file.
1
14
#include <grass/gis.h>
15
#include <grass/glocale.h>
16
32
int
G_projection_units
(
int
n)
33
{
34
switch
(n) {
35
case
PROJECTION_XY:
36
return
U_UNKNOWN;
37
case
PROJECTION_UTM:
38
return
U_METERS;
39
case
PROJECTION_LL:
40
return
U_DEGREES;
41
default
:
42
return
U_UNDEFINED;
43
}
44
return
U_UNDEFINED;
45
}
46
55
const
char
*
G_projection_name
(
int
n)
56
{
57
switch
(n) {
58
case
PROJECTION_XY:
59
return
"x,y"
;
60
case
PROJECTION_UTM:
61
return
"UTM"
;
62
case
PROJECTION_LL:
63
return
_(
"Latitude-Longitude"
);
64
case
PROJECTION_OTHER:
65
return
_(
"Other Projection"
);
66
default
:
67
return
NULL
;
68
}
69
}
G_projection_name
const char * G_projection_name(int n)
Get projection name.
Definition:
proj2.c:55
NULL
#define NULL
Definition:
ccmath.h:32
G_projection_units
int G_projection_units(int n)
Get projection units code (for internal use only)
Definition:
proj2.c:32
gis
proj2.c
Generated on Thu Dec 3 2015 05:16:15 for GRASS GIS 7 Programmer's Manual by
1.8.9.1