[GRASS-user] Re: Ongoing r.in.wms issue

rchirgwin at ozemail.com.au rchirgwin at ozemail.com.au
Thu Mar 6 05:24:53 EST 2008


Hamish, if you're ever in Sydney, I owe you a beer/wine/spirits/coffee.

This worked. I can now hand off both the built-in scripts and the 
home-made WMS generic download script to my colleagues without the pangs 
of guilt! Thanks!

Richard

Hamish wrote:
> Richard Chirgwin wrote:
>   
>> here is all the debug information that popped out:
>>
>> D1/1: -n
>>
>> Everything else is as you have seen before...
>>
>> /Applications/Grass-6.3.app/Contents/MacOS/etc/r.in.wms/wms.download:
>>
>> line 118: eval: -n: invalid option
>> eval: usage: eval [arg ...]
>> (etc)
>>     
>
>
> I found it- non-portable use of 'echo -n' in wms.request, line 223:
>
> 223 	  #reset the requestfile
> 224 	  echo -n "" > "${REQUESTFILE}"
>
>
> can you try just removing the -n on that line?
>   http://trac.osgeo.org/grass/changeset/30479
>
>
> that will result in an extra blank line at the top of the request file
> (wms/downoad/*.curl), but I am pretty sure that won't make any
> difference as the $CONTENTS for loop in wms.download will filter out
> any extra whitespace.
>
>
> Hamish
>
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>
>
>   


More information about the grass-user mailing list