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

John Gillette JGillette at rfmd.com
Mon May 9 12:30:36 EDT 2005


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

(untested)
REF: tldp.org "Advanced Bash-Scripting Guide", section 4.1, 7.3
John

> 
> 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




More information about the grass-dev mailing list