GRASS and windows console

From GRASS-Wiki
Revision as of 13:23, 14 June 2017 by ⚠️Hellik (talk | contribs)
Jump to navigation Jump to 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, several GRASS modules can be invoked by an batch file (*.bat) in the winGRASS windows console.

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