[Proj] quoting +nadgrids ?
hamish_b at yahoo.com
Mon Aug 2 22:26:52 EST 2010
> I understood the OP was getting the "projection definition"
> so that it could be used by cs2cs at some later date.
> So when this string is passed as a CRS to cs2cs it only
> reads as far as the "C:\Program" part for the grid file and
> all goes downhill fast from there.
Yes, that's what it started out as, but cs2cs was fixed with Glynn's
IN_PROJ=`g.proj -j | (
while read line ; do
after applying that, and audit showed that is was also a problem for
gdalwarp, but in that case there was no work around as it only takes
a single (quoted) argument for the entire +proj string, with no way
to quote individual terms within it. cs2cs takes a series of arguments
each of which can be individually quoted.
[there was also a bug fix by Paul, but that's tangential]
> He didn't say anything about the shell, but I assumed
> there'd be one if cs2cs was being used.
fwiw this is being done within a bourne shell script, run on MS-Windows
using MinGW's MSys build of the GNU unix powertools.
But the gdalwarp problem transcends shell and OS.
More information about the Proj