File: g.version.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (91 lines) | stat: -rw-r--r-- 2,477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<h2>DESCRIPTION</h2>

<em>g.version</em> prints to standard output the GRASS version number,
date, the GRASS GIS copyright (<b>-c</b> flag), and GRASS build information
(<b>-b</b> flag).

<h2>NOTES</h2>

This program requires no command line arguments; the user simply types
<em>g.version</em> on the command line to see the version number and
date of the GRASS GIS software currently being run by the user.

<p>
Information about GRASS GIS
core <a href="https://grass.osgeo.org/programming8/gislib.html">GIS
Library</a> can be printed by <b>-r</b> flag.

<p>
Version numbers of additional libraries
like <a href="https://proj.org/">PROJ</a>, <a href="https://gdal.org/">GDAL/OGR</a>
or <a href="https://trac.osgeo.org/geos">GEOS</a> are printed
by <b>-e</b> flag.

<p>
See also function <code>version()</code>
from <a href="https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library">Python
Scripting Library</a>.

<div class="code"><pre>
import grass.script as gcore

print gcore.version()
</pre></div>

<h2>EXAMPLES</h2>

<h3>Basic info</h3>
<div class="code"><pre>
g.version

GRASS 8.4.0 (2024)
</pre></div>

<h3>GIS Library info</h3>

<div class="code"><pre>
g.version -r

GRASS 8.4.0 (2024)
libgis revision: c9e8576cf
libgis date: 2024-04-27T09:38:49+00:00
</pre></div>

<h3>Full info in shell script style</h3>
<div class="code"><pre>
g.version -rge

version=8.4.0
date=2024
revision=d57f40906
build_date=2024-05-23
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=c9e8576cf
libgis_date=2024-04-27T09:38:49+00:00
proj=8.2.1
gdal=3.4.3
geos=3.9.2
sqlite=3.36.0
</pre></div>

Note: if <code>revision=exported</code> is reported instead of the git hash then the
<code>git</code> program was not available during compilation of GRASS GIS and the
source code did not contain the <code>.git/</code> subdirectory (requires e.g. to
<code>git clone</code> the GRASS GIS <a href="https://github.com/OSGeo/grass/">software repository</a>.)

<h2>Citing GRASS GIS</h2>

The GRASS Development Team has invested significant time and effort
in creating GRASS GIS, please cite it when using it for data analysis.

The GRASS GIS <a href="https://grass.osgeo.org/about/license/">Web site</a>
offers citations in different styles.
<!-- TODO: g.version should offer this right away -->

<h2>AUTHORS</h2>

Michael Shapiro,
U.S. Army Construction Engineering
Research Laboratory<br>
Extended info by Martin Landa, Czech Technical University in Prague, Czech Republic