Difference between revisions of "GRASS and windows console"

From GRASS-Wiki
Jump to navigation Jump to search
Line 2: Line 2:


==Windows batch files in GRASS==
==Windows batch files in GRASS==
<source lang="bat">
@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
</source>

Revision as of 13:20, 14 June 2017

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

@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