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

Agustin Diez Castillo Agustin.Diez at uv.es
Tue May 8 08:28:52 EDT 2007


Building from yesterday's cvs,
r.in.wms and r.in.gdalwarp(/Applications/GRASS-6.3.app/Contents/ 
Resources/etc/r.in.wms) still have #!/bin/sh, r.tileset has #!/bin/bash

I still got the bug I reported some time ago
**************************************************
WARNING: xml2 NOT avaliable
sed: 1: "s/<\/Title>//i
": bad flag in substitute command: 'i'
sed: 1: "s/<\/*.*\/*\/*>//i
": bad flag in substitute command: 'i'
sed: 1: "s/<Name>\s*\(\w*\)/~\1~ ...": bad flag in substitute  
command: 'i'
sed: 1: "s/<\/Name>\n//ig
": bad flag in substitute command: 'i'
sed: sed: 1: "s/<Layer .*>/LAYER:/i
": bad flag in substitute command: 'i'
1: "s/<\/Style>//i
": bad flag in substitute command: 'i'
sed: 1: "s/<Title>\(.*\)<\/Title ...": bad flag in substitute  
command: 'i'
sed: 1: "s/<Style>\n*\s*\(\w*\)/ ...": bad flag in substitute  
command: 'i'
sed: 1: "s/<\/Layer.*>//i
": bad flag in substitute command: 'i'

> #!/bin/sh

On May 8, 2007, at 12:37 PM, Hamish wrote:

> 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
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>




More information about the grass-user mailing list