On scripting GRASS GIS: Building location-independent command line tools
DOI:
https://doi.org/10.14311/gi.4.4Keywords:
GRASS GIS, GRASS Scripting, FOSS GIS Workflows, Embedded GIS, Bash, PythonAbstract
This paper discusses scripting techniques within the context of GRASS GIS. After an overview over scripting for interactive GRASS sessions, it is shown how GRASS GIS-provided functionality can be used for external applications. This approach of external scripting allows for the application of GRASS GIS-based functionality to be used for standalone applications and embedding in larger automated workflows.References
Löwe P: Niederschlagserosivitat: Eine Fallstudie aus Sudafrika, basierend auf Wetterradar und Open Source GIS, VDM Verlag, 2008, ISBN 978-3-8364-5018-8
Neteler, M. and Mitášová a H.: Open Source GIS: A GRASS GIS Approach, Kluwer Academic Publishers Group, 2002, ISBN 1-4020-7088-8
GRASS AddOns http://grass.osgeo.org/wiki/GRASS AddOns
GRASS GIS module to remove data base element files from the user’s current mapset. http://grass.fbk.eu/grass64/manuals/html64 user/g.mremove.html
GRASS module to provide canonic interfaces for scripts http://grass.itc.it/grass64/manuals/html64 user/g.parser.html
Raster data import http://grass.itc.it/grass64/manuals/html64 user/r.in.gdal.html
Raster data export http://grass.itc.it/grass64/manuals/html64 user/r.out.gdal.html
Reprojection of raster data from other GRASS locations with differing projection http://grass.itc.it/grass64/manuals/html64 user/r.proj.html
Overview over GRASS environment variables and setting options http://grass.itc.it/grass64/manuals/html64 user/variables.html
Vector data import http://grass.itc.it/grass64/manuals/html64 user/v.in.ogr.html
Vector data export http://grass.itc.it/grass64/manuals/html64 user/v.out.ogr.html
Reprojection of vector data from other GRASS locations with differing projection http://grass.itc.it/grass64/manuals/html64 user/v.proj.html
Overview over EPSG codes http://www.epsg.org/Geodetic.html
Automated Earthquake Map based on GRASS GIS http://grass.itc.it/spearfish/php grass earthquakes.php
GRASS module to manipulate projection settings http://www.grass.itc.it/grass64/manuals/html64 user/g.proj.html
Downloads
Published
Issue
Section
License
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).