[GRASS-dev] GRASS 7 scripts overhaul

Markus Neteler neteler at osgeo.org
Sun Sep 4 06:20:49 EDT 2011


Hi,

I have tested almost all GRASS 7 scripts and fixed a lot of them (mostly
broken in the parser part).

To all relevant (most) I have added North Carolina examples for easier
testing.

This set of modules I did not manage to fix:

* db.in.ogr
-> it does not, as programmed, delete the empty geometry and the cat column

* d.rast.leg
-> messy output, at least in wx0

* i.in.spotvgt
-> NameError: global name 'string' is not defined

* i.landsat.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
Processing <lsat7_2002_30>...
Color table for raster map <lsat7_2002_30> set to 'rules'
Processing <lsat7_2002_20>...
Color table for raster map <lsat7_2002_20> set to 'rules'
Processing <lsat7_2002_10>...
Color table for raster map <lsat7_2002_10> set to 'rules'
WARNING: Unable to write history for <lsat7_2002_30>. Raster map
         <lsat7_2002_30> not found in current mapset.
WARNING: Unable to write history for <lsat7_2002_20>. Raster map
         <lsat7_2002_20> not found in current mapset.
WARNING: Unable to write history for <lsat7_2002_10>. Raster map
         <lsat7_2002_10> not found in current mapset.

* i.spectral
-> no more errors but also no output

* r.mask
-> should show '[Raster MASK present]' as in GRASS 6 in the user prompt

* r.out.xyz (trying to export to elev_lid792_1m.csv)
->   File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/r.out.xyz",
line 42, in main
    outf = file(output)
    IOError: [Errno 2] No such file or directory: 'elev_lid792_1m.csv'

* GRASS 7.0.svn (latlong_wgs84 at neteler):~ > v.in.wfs
url="http://mapserver.gdf-hannover.de/cgi-bin/grassuserwfs?REQUEST=GetFeature&amp;SERVICE=WFS&amp;VERSION=1.0.0"
out=grass_users
Retrieving data...
Importing data...
ERROR: Unable to open data source
       </home/neteler/grassdata/latlong_wgs84/neteler/.tmp/north/18964.0.xml>
WFS import failed

* v.out.gps -t input=railroads output=trail.gpx
[nothing happens...]
^CTraceback (most recent call last):
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/m.proj",
line 278, in <module>
    main()
Traceback (most recent call last):
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/v.out.gps",
line 316, in <module>
    main()
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/v.out.gps",
line 207, in main
    p2.stdin.write(line)
KeyboardInterrupt

The rest in now ok, at least for the test cases added to the manual pages.

Markus


More information about the grass-dev mailing list