[Proj] quoting +nadgrids ?

Greg Troxel gdt at ir.bbn.com
Thu Jul 29 05:29:13 PDT 2010


Hamish <hamish_b at yahoo.com> writes:

> Hi,
>
> we've run into a problem whereas the nad/conus grid file has been
> installed under C:\Program Files\ (which contains a space), and the
> pj_get_def(pjinfo.pj, 0) string doesn't quote the filename of the
> +nadgrids=/full/path/and/filename parameter. 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.
>
> any recommendations on how to handle this? i.e. should the "quotes" be
> added by pj_get_def(), or via some ugly string munging in our app? (which
> currently fprints those terms verbatim to stdout)

Perhaps the installation should just error out on paths with spaces.

Are you having trouble with shell quoting or with argument parsing?  If
you put quotes around the whole def string, does it work?  Are you
printing a command line and then invoking it with a shell?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20100729/bcc411b9/attachment.sig>


More information about the Proj mailing list