Send grass-windows mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/grass-windows
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-windows digest..."


Today's Topics:

   1. Help with running GRASS commands from a Window    batch file (bpost)
   2. Profile and tcltk GUI (kapo coulibaly)


----------------------------------------------------------------------

Message: 1
Date: Wed, 19 Aug 2009 20:47:46 -0500 (CDT)
From: bpost <[email protected]>
Subject: [GRASS-windows] Help with running GRASS commands from a
        Window  batch file
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


Hi all,

WinXP SP2
Grass installed using: WinGRASS-6.4.0SVN-r38537-1-Setup.exe

I am working on creating a simple batch file that takes in a GeoTIFF,
creates a new Location, does some work on the image and then spits out the
final product.

I started by copying the environment setup commands from
$GISBASE\grass64.bat and removed the call to $GISBASE\etc\Init.bat.

I started by adding in a call to 
g.proj.exe -pc georef=<path to image> location=test 
and verified that a new location named "test" was placed in my $GISDATA
directory, including the PERMANENT folder and the DEFAULT_WIND, PROJ_INFO,
PROJ_UNITS, and WIND files.

Then I added in 
r.in.gdal.exe input=<path to image> output=aerial 
and verified that it created aerial.red, aerial.green, aerial.blue, and
aerial.4.

When I added the command to create an RGB 
r.composite.exe red=aerial.red green=aerial.green blue=aerial.blue levels=1
output=aerial
I got an error telling me to set the region using r.region.

So I added in 
r.region map=aerial.red
to set the region based on the size of the red channel.

When I ran this, all of the executables started throwing unhandled
exceptions (stack overflow, divide by zero, etc.)  So I started removing
commands in the batch until only the g.proj.exe command remained and I was
still getting unhandled exceptions.

At this point I decided to restart my computer and reinstall GRASS.  Now
when I run the batch file, none of the commands do anything.  Even
g.proj.exe -help shows nothing in the command window.

Has anyone run into this, or know of a workaround/fix to this issue?

The commands all work in the GUI, so I am not sure why they won't work in a
batch file.

Thanks for your time!

Ben
-- 
View this message in context: 
http://n2.nabble.com/Help-with-running-GRASS-commands-from-a-Window-batch-file-tp3476392p3476392.html
Sent from the Grass - Win mailing list archive at Nabble.com.


------------------------------

Message: 2
Date: Thu, 20 Aug 2009 10:24:39 -0400
From: kapo coulibaly <[email protected]>
Subject: [GRASS-windows] Profile and tcltk GUI
To: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I have installed GRASS for windows (the latest 6.4 version). Everything
seems to be working fine when I'm using the wxpython gui. When i switch to
the tcltk GUI, none of my data show up. I end up with an empty project even
though I can see that there is data when i use the python gui.
The second probleme is when i try to create a profile I get the following
error:
Traceback (most recent call last):
  File "C:\GRASS\Python25\lib\profile.py", line 466, in
OnCreateProfile

  File "C:\GRASS\Python25\lib\profile.py", line 393, in
SetGraphStyle

  File "C:\Programs\GIS\OSGeo4W\apps\Python25\lib\site-
packages\wx-2.8-msw-unicode\wx\_gdi.py", line 114, in
__init__
TypeError
:
in method 'new_Colour', expected argument 1 of type 'byte'

The funny part is sometime it works fine and sometime I get the above error
off and on on the same Raster file.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/grass-windows/attachments/20090820/866f6c8d/attachment-0001.html

------------------------------

_______________________________________________
grass-windows mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-windows


End of grass-windows Digest, Vol 36, Issue 9
********************************************

Reply via email to