GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
proj2.c
Go to the documentation of this file.
1 
14 #include <grass/gis.h>
15 #include <grass/glocale.h>
16 
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 }
const char * G_projection_name(int n)
Get projection name.
Definition: proj2.c:55
#define NULL
Definition: ccmath.h:32
int G_projection_units(int n)
Get projection units code (for internal use only)
Definition: proj2.c:32