[GRASS-user] Again: Problem with WMS-Services

Hamish hamish_nospam at yahoo.com
Tue May 8 06:37:05 EDT 2007


Christian Braun wrote:
> I wrote to the list a few weeks ago with no answers to my problem.
> 
> So again here is my problem again:
> 
> I have a problem importing WMS-Services into GRASS. Here is the
> command  and the description of the error I got:
> 
> ##
> ##
> ##The command which has been issued on grass command line
> ##
> ##
> 
> r.in.wms -d -p output=DEM_WMS
> mapserver=http://10.3.1.12/cgi-bin/mapserv?map=/data/umn/pmapper-3.0.
> 1/config/default/demo_wms.map  layers=DEM_WMS srs=EPSG:4326
> format=geotiff wmsquery=version=1.1.1  maxcols=1024 maxrows=1024
> folder=/home/uleopold/tmp 'wgetoptions=-c -t 5  --user-agent=MSIE5.5'
> method=nearest v=1 --overwrite
> 
> ##
> ##
> ##The error message:
> ##
> ##
> 
> wms.download  'requestfile=/home/uleopold/tmp/DEM_WMS_.wget'
> 'wgetoptions=-c -t 5 --user-agent=MSIE5.5'
> ###############################
> Downloading tiles
> ###############################
> cat: /home/uleopold/tmp/DEM_WMS_.wget: No such file or directory
> #################################
> All tiles downloaded successfully
> #################################
> cat: /home/uleopold/tmp/DEM_WMS_.wget: No such file or directory
> r.in.gdalwarp  -c -p 'output=DEM_WMS' 'method=nearest'
> 's_srs=EPSG:4326'
> 
> ERROR: Required parameter <input> not set:
>     (Raster file or files to be imported. If multiple files are
> specified they will be patched together.).
> 
> In software like QGIS and ArcGIS the WMS-Service is working very well.
> It seems that there is aproblem with the input data that is piped to 
> gdalwarp.
> 
> Any ideas...?


Are you using Ubuntu and GRASS 6.2.1? Ubuntu uses "dash" as it's /bin/sh
instead of Bash. r.in.wms and friends used bash-specific tricks in them.
This has since been fixed and will appear in future releases of GRASS.
You can recompile from CVS yourself (or just grab the updated scripts*),
or you can edit the existing r.in.wms, r.in.gdalwarp, r.tileset, and wms.*
scripts by hand: change #!/bin/sh to #!/bin/bash in the first line of
each file.


[*] download latest "releasebranch_6_2" versions from:
 http://freegis.org/cgi-bin/viewcvs.cgi/grass6/scripts/


Hamish




More information about the grass-user mailing list