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.
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
##
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.
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.
(try yet again using today's CVS; "g.message" was broken in a few places)
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
r.in.wms was changed to not need bash. But it is easier to change the
old installed version to use bash (by changing that top line) than it is
to explain about all the needed changes.
r.tileset uses all sorts of bash array tricks which I have no idea how
to fix. So that is the only one I've changed to #!/bin/bash. In the other
WMS scripts I have replaced the bash specific code and kept as #!/bin/sh.