GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
proj1.c
Go to the documentation of this file.
1 
2 /**********************************************************************
3  * G_projection()
4  *
5  * Returns the projection type of the currently set window.
6  * (Note this is really the coordinate system, not the projection)
7  * PROJECTION_XY 0 - x,y (Raw imagery)
8  * PROJECTION_UTM 1 - UTM Universal Transverse Mercator
9  * PROJECTION_SP 2 - State Plane (in feet)
10  * PROJECTION_LL 3 - Latitude-Longitude
11  *
12  **********************************************************************/
13 
14 #include <grass/gis.h>
15 
16 
33 int G_projection(void)
34 {
35  struct Cell_head window;
36 
37  G_get_set_window(&window);
38  return window.proj;
39 }