Hamish wrote:

> next problem: r.in.wms calls wms.request which calls r.tileset.
> r.tileset calls cs2cs*, with +proj4 terms taken from SRS=`g.proj -j`.
> 
> for spearfish those terms include the conus grid file, which is in
> $GISBASE/etc/nad/ ... and $GISBASE of course contains a space, and
> then cs2cs dies a horrible death.
> 
> so how to quote the right side of the individual +nadgrids= line? and
> will cs2cs accept that?

You need to construct the cs2cs command line "the hard way"; simply
inserting the "g.proj -j" output won't work.

Something like:

        opts=`g.proj -j | (
            opts=
            while read line ; do
                opts="$opts '$line'"
            done
            echo "$opts"
        )`

BTW: the Python versions of m.proj and r.in.aster will have problems
with this, as they use "g.proj -jf ...".

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to