[GRASS-user] How to embed a grass script (for example v.db.addcol) into a Pythonscript on windows?

Michael Barton michael.barton at asu.edu
Thu Mar 4 11:59:24 EST 2010


On Mar 3, 2010, at 10:00 AM, grass-user-request at lists.osgeo.org wrote:

> Message: 3
> Date: Wed, 3 Mar 2010 17:36:07 +0100
> From: Martin Landa <landa.martin at gmail.com>
> Subject: Re: [GRASS-user] How to embed a grass script (for example
> 	v.db.addcol) into a Pythonscript on windows?
> To: Sonja Jankowfsky <sonja.jankowfsky at cemagref.fr>
> Cc: grass-user at lists.osgeo.org
> Message-ID:
> 	<f8fe65c41003030836g3996e3e9y67fe12be5fe06c73 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi,
> 
> 2010/3/3 Sonja Jankowfsky <sonja.jankowfsky at cemagref.fr>:
> 
>> grass.run_command("v.db.addcol", map='ditch_l', ?columns='urban')
> 
> specify data column type, e.g.
> 
> grass.run_command("v.db.addcol", map='ditch_l',  columns='urban int')
> 
> Martin
> 
> -- 
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


This implies that it is now possible to create python scripts that run in GRASS under windows??? 

That would be great news. Is there anything special that is needed for this to work?

Michael


More information about the grass-user mailing list