GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
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
*/
32
int
G_projection
(
void
)
33
{
34
struct
Cell_head
window;
35
36
G_get_set_window
(&window);
37
return
window.
proj
;
38
}
Cell_head
2D/3D raster map header (used also for region)
Definition:
gis.h:412
gis.h
G_get_set_window
void G_get_set_window(struct Cell_head *)
Get the current working window (region)
Definition:
gis/set_window.c:35
Cell_head::proj
int proj
Projection code.
Definition:
gis.h:444
G_projection
int G_projection(void)
Query cartographic projection.
Definition:
proj1.c:32
lib
gis
proj1.c
Generated on Mon May 31 2021 05:21:31 for GRASS GIS 7 Programmer's Manual by
1.8.13