GRASS 8 Programmer's Manual
8.5.0dev(2025)-52c8278fcf
zone.c
Go to the documentation of this file.
1
/*!
2
* \file lib/gis/zone.c
3
*
4
* \brief GIS Library - Cartographic zone functions.
5
*
6
* This program is free software under the GNU General Public License
7
* (>=v2). Read the file COPYING that comes with GRASS for details.
8
*
9
* \author Original author CERL
10
*/
11
12
#include <grass/gis.h>
13
14
/*!
15
* \brief Query cartographic zone.
16
*
17
* This routine returns the zone for the active region. The meaning
18
* for the zone depends on the projection. For example, zone 18 for
19
* projection type 1 would be UTM zone 18.
20
*
21
* \return int cartographic zone
22
*/
23
int
G_zone
(
void
)
24
{
25
struct
Cell_head window;
26
27
G_get_set_window
(&window);
28
29
return
window.zone;
30
}
G_get_set_window
void G_get_set_window(struct Cell_head *window)
Get the current working window (region)
Definition:
gis/set_window.c:35
G_zone
int G_zone(void)
Query cartographic zone.
Definition:
zone.c:23
gis
zone.c
Generated on Fri Oct 3 2025 07:05:08 for GRASS 8 Programmer's Manual by
1.9.1