[GRASS-user] R.in.wms on MacOS - bug?

Greetings,

Am in the process of setting up a new user on the latest MacOS build. R.in.wms seems to be stumbling on parsing inputs ...

First, errors occur which it attributes to cs2cs:

<cs2cs>:

projection initialization failure

cause: no system list, errno: 2

program abnormally terminated

(standard_in) 1: illegal character: U

Then, r.tileset gets into trouble:

Applications/GRASS-6.3.app/Contents/MacOS/scripts/r.tileset: line 201: =${0[p_source_proj_p]}: bad substitution

/Applications/GRASS-6.3.app/Contents/MacOS/scripts/r.tileset: line 201: =${1[p_source_units]}: bad substitution

/Applications/GRASS-6.3.app/Contents/MacOS/scripts/r.tileset: line 201: =${2[p_dest_proj_p]}: bad substitution

/Applications/GRASS-6.3.app/Contents/MacOS/scripts/r.tileset: line 201: =${3[p_dest_units]}: bad substitution

Can anyone point me to the problem?

Richard

Richard Chirgwin wrote:

Am in the process of setting up a new user on the latest MacOS build.
R.in.wms seems to be stumbling on parsing inputs ...

First, errors occur which it attributes to cs2cs:

<cs2cs>:
projection initialization failure
cause: no system list, errno: 2
program abnormally terminated
(standard_in) 1: illegal character: U

Then, r.tileset gets into trouble:

Applications/GRASS-6.3.app/Contents/MacOS/scripts/r.tileset:
line 201:
=${0[p_source_proj_p]}: bad substitution

[... projection not set errors]

Can anyone point me to the problem?

Can you rerun r.in.wms with 'tileoptions="v=3"' ?

this will display some debug messages showing what cs2cs line r.tileset
is trying to use. Alternatively you could change the first line of
r.tileset from '#!/bin/bash' to '#!/bin/bash -x' to get a big dump of
debug info.

What is the r.in.wms command line you used? (server isn't really important)
what did you give for r.in.wms srs= ?

How about 'g.proj -j' and 'g.proj -p' ?
r.in.wms calls wms.request which sorts out the projection stuff and calls
r.tileset.

Hamish