[GRASS5] r.out.gdal not working in CVS HEAD

Hamish hamish_nospam at yahoo.com
Mon May 9 19:45:56 EDT 2005


> > Dear developers,
> > 
> > Last changes between 1.14 and 1.15 in CVS HEAD prevent r.out.gdal
> > from working (with my maschine).
> > 
> > When I revert the changes everything works well. The quoting seems
> > to be messed up a bit.
> > 
> > Cheers
> > 	Stephan
> >
On Mon, 9 May 2005 12:30:36 -0400
"John Gillette" <JGillette at rfmd.com> wrote:
> I suggest try changing from:
> 
> WKT=`g.proj -wf`
> if [ -n $WKT ] ; then
>   PROJECTION="-a_srs '${WKT}'"
> fi
> 
> to:
> 
> WKT=`g.proj -wf`
> if [ -n "$WKT" ] ; then
>   PROJECTION="-a_srs ${WKT}"
> fi
> 
> If that doesn't work, try this:
> 
> WKT=`g.proj -wf`
> if [ -n "$WKT" ] ; then
>   PROJECTION="-a_srs \"${WKT}\""
> fi


I commited the quoting fix on the -n line to CVS, but not the one on the
PROJECTION line. I think "-a_srs '${WKT}'" should infact expand $WKT;
while '-a_srs "${WKT}"' would not.  Could you test?



Hamish




More information about the grass-dev mailing list