GRASS Programmer's Manual  6.5.svn(2014)-r66266
 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 }
int G_get_set_window(struct Cell_head *window)
Get the current working window.
Definition: set_window.c:30
int G_projection(void)
query cartographic projection
Definition: proj1.c:33