<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hamish wrote:
<blockquote cite="mid:903588.31389.qm@web45807.mail.sp1.yahoo.com"
type="cite">
<pre wrap="">Richard Chirgwin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Some progress on this, but I suspect there's something "under the
covers" that somebody needs to know about.
The r.in.wms documentation says:
*r.in.wms* [-*ldockp*] [*output*=/string/] *mapserver*=/string/
[*layers*=/string/[,/string/,...]] [*styles*=/string/[,/string/,...]]
[*srs*=/string/] *format*=/string/ [*wmsquery*=/string/]
*maxcols*=/integer/ *maxrows*=/integer/ [*tileoptions*=/string/]
[*region*=/string/] [*folder*=/string/] [*wgetoptions*=/string/]
[*curloptions*=/string/] *method*=/string/ [*v*=/integer/]
[--*overwrite*] [--*verbose*] [--*quiet*]
Note that "mapserver" appears before layers. If I use this syntax, I
get:
ERROR: Required parameter <layers> not set:
(Layers to request from map server).
However, if I reverse the order of the mapserver and the layers:
r.in.wms output=Background layers=psma:all mapserver=<URL>
</pre>
</blockquote>
<pre wrap=""><!---->
The parser doesn't really care about the order*; this lends credence to
the theory that you need to quote your strings from the terminal and
the command gets side-tracked with a &|;= before getting to the end.
In the case where layer= comes first it will truncate the mapserver=
option and it will still fail, but later on in the script.
[*] If your mapserver URL contains an unquoted "=" the parser might
treat that part as an option.
</pre>
<blockquote type="cite">
<pre wrap="">- then things work okay. So is it an error in the documentation, or
has a more recent release changed the r.in.wms script?
</pre>
</blockquote>
<pre wrap=""><!---->
Did this once work for you in an earlier version of GRASS?
</pre>
</blockquote>
Hamish,<br>
<br>
Here's how things stand now.<br>
<br>
Quoting properly fixes the problem on Grass-6.3 under Tiger.<br>
<br>
However, on Grass-6.3RC4 on Leopard, with the new r.in.wms and
wms.downloads installed, I still get the wms.download error on line
118, that -n is an invalid option...<br>
<br>
Cheers,<br>
RC<br>
<blockquote cite="mid:903588.31389.qm@web45807.mail.sp1.yahoo.com"
type="cite">
<pre wrap="">
Hamish
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
<a class="moz-txt-link-freetext" href="http://www.yahoo.com/r/hs">http://www.yahoo.com/r/hs</a>
</pre>
</blockquote>
<br>
</body>
</html>