GRASS GIS 8 Programmer's Manual 8.4.1(2025)-45ca3179ab
Loading...
Searching...
No Matches
proj1.c
Go to the documentation of this file.
1/*!
2 \file lib/gis/proj1.c
3
4 \brief GIS Library - Projection support (window related)
5
6 (C) 2001-2011 by the GRASS Development Team
7
8 This program is free software under the GNU General Public License
9 (>=v2). Read the file COPYING that comes with GRASS for details.
10
11 \author Original author CERL
12 */
13
14#include <grass/gis.h>
15
16/*!
17 \brief Query cartographic projection
18
19 This routine returns a code indicating the projection for the active
20 region. The current values are (see gis.h)
21
22 - PROJECTION_XY 0 - x,y (Raw imagery)
23 - PROJECTION_UTM 1 - UTM Universal Transverse Mercator
24 - PROJECTION_SP 2 - State Plane (in feet) - not used, removed
25 - PROJECTION_LL 3 - Latitude-Longitude
26 - PROJECTION_OTHER 99 - others
27
28 Others may be added in the future.
29
30 \return projection code (see above)
31 */
32int G_projection(void)
33{
34 struct Cell_head window;
35
36 G_get_set_window(&window);
37 return window.proj;
38}
void G_get_set_window(struct Cell_head *window)
Get the current working window (region)
int G_projection(void)
Query cartographic projection.
Definition proj1.c:32