[Proj] quoting +nadgrids ?

Karney, Charles ckarney at Sarnoff.com
Sat Jul 31 08:45:57 EST 2010


>From: Frank Warmerdam [warmerdam at pobox.com]
> Sent: Saturday, July 31, 2010 09:22

> Based on this, I'm starting to think that the PROJ.4
> parameter parser just ought to have a special escape
> sequence for embedding a space.  Ideally something not
> likely to "activate" other escape sequence parsers.
> Something like:
> 
> +nadgrids=C:\Program@@@space@@@Files\GRASS...
> 
> If you would like me to incorporate such a change, let me know
> via a proj.4 ticket and I'll proceed.

Here's a counter-proposal that might address the issues in a
sufficiently general way:

  gdalwarp -t_srs "@file.txt"

with the understanding that an initial @ in an argument implies
indirection.  file.txt is opened, and the real argument is the result of
the first getline.

    --Charles

--
Charles Karney <ckarney at sarnoff.com>
Sarnoff Corporation, Princeton, NJ 08543-5300

Tel: +1 609 734 2312
Fax: +1 609 734 2662


More information about the Proj mailing list