GRASS and windows console

From GRASS-Wiki
Revision as of 01:39, 15 June 2017 by Hellik (talk | contribs) (add link to python modules)

Jump to: navigation, search

This page shows an example how to run several GRASS modules in a windows batch-file in the winGRASS windows console

Windows batch files in GRASS

In order to ease the workflow of analysis, several GRASS modules can be invoked at once by an batch file (*.bat) in the winGRASS windows console.

Python grass modules (e.g. v.db.addcolumn) have to be invoked by call in the batch-file.

g.region -p output=myreg
call v.db.addtable map=myreg
call v.db.addcolumn map=myreg columns="col1 double" map=myreg option=area columns=col1