GRASS 8 Programmer's Manual
8.6.0dev(2026)-c83afef6d3
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
SPDX-FileCopyrightText: 2001-2011 GRASS Development Team
7
SPDX-License-Identifier: GPL-2.0-or-later
8
9
\author Original author CERL
10
*/
11
12
#include <
grass/gis.h
>
13
14
/*!
15
\brief Query cartographic projection
16
17
This routine returns a code indicating the projection for the active
18
region. The current values are (see gis.h)
19
20
- PROJECTION_XY 0 - x,y (Raw imagery)
21
- PROJECTION_UTM 1 - UTM Universal Transverse Mercator
22
- PROJECTION_SP 2 - State Plane (in feet) - not used, removed
23
- PROJECTION_LL 3 - Latitude-Longitude
24
- PROJECTION_OTHER 99 - others
25
26
Others may be added in the future.
27
28
\return projection code (see above)
29
*/
30
int
G_projection
(
void
)
31
{
32
struct
Cell_head
window;
33
34
G_get_set_window
(&window);
35
return
window.
proj
;
36
}
G_get_set_window
void G_get_set_window(struct Cell_head *)
Get the current working window (region)
Definition
gis/set_window.c:33
gis.h
G_projection
int G_projection(void)
Query cartographic projection.
Definition
proj1.c:30
Cell_head
2D/3D raster map header (used also for region)
Definition
gis.h:443
Cell_head::proj
int proj
Projection code.
Definition
gis.h:475
lib
gis
proj1.c
Generated on Fri Sep 11 2026 06:57:48 for GRASS 8 Programmer's Manual by
1.9.8