GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
/*!
16
* \brief Query cartographic zone.
17
*
18
* This routine returns the zone for the active region. The meaning
19
* for the zone depends on the projection. For example, zone 18 for
20
* projection type 1 would be UTM zone 18.
21
*
22
* \return int cartographic zone
23
*/
24
25
int
G_zone
(
void
)
26
{
27
struct
Cell_head
window;
28
29
G_get_set_window
(&window);
30
31
return
window.
zone
;
32
}
Cell_head
2D/3D raster map header (used also for region)
Definition:
gis.h:412
gis.h
Cell_head::zone
int zone
Projection zone (UTM)
Definition:
gis.h:446
G_zone
int G_zone(void)
Query cartographic zone.
Definition:
zone.c:25
G_get_set_window
void G_get_set_window(struct Cell_head *)
Get the current working window (region)
Definition:
gis/set_window.c:35
lib
gis
zone.c
Generated on Mon May 31 2021 05:21:32 for GRASS GIS 7 Programmer's Manual by
1.8.13