[GRASS-windows] GUI with python scripts or shell scripts

Sonja Jankowfsky sonja.jankowfsky at cemagref.fr
Wed Mar 3 07:10:09 EST 2010


I did some more tests on my machine on this subject and what I get is this:
I don't get an interface with the grass parser on my windows machine, 
neither with a shell script running through Msys, nor a python script 
running through the windows commandline. However, I can enter the 
variables as normal GRASS command on  my command line:

test.py input=ditch.shp output=ditch1

test.sh input=ditch.shp output=ditch1

Is this a common bug?
Sonja

On 1/29/2010 7:25 PM, Glynn Clements wrote:

> What do you get from:

>

> 	junk.py --interface-description

> ?

>    

Here is the output


GRASS 6.4> 

F:\\AMNH\\WHRC_CarbonProject\\R_Project\\PercentCoverTutorial\\junk.

py --interface-description

GRASS 6.4> <?xml version="1.0" encoding="CP1252"?>

<!DOCTYPE task SYSTEM "grass-interface.dtd">

<task name="junk.py">

<description>

                 g.parser test script (python)

</description>

<parameter name="raster" type="string" required="yes" multiple="no">

<description>

                         Raster input map

</description>

<gisprompt age="old" element="cell" prompt="raster" />

</parameter>

<parameter name="vector" type="string" required="yes" multiple="no">

<description>

                         Vector input map

</description>

<gisprompt age="old" element="vector" prompt="vector" />

</parameter>

<parameter name="option1" type="string" required="no" multiple="no">

<description>

                         An option

</description>

</parameter>

<flag name="f">

<description>

                         A flag

</description>

</flag>

<flag name="verbose">

<description>

                         Verbose module output

</description>

</flag>

<flag name="quiet">

<description>

                         Quiet module output

</description>

</flag>

</task>



More information about the grass-windows mailing list