[Proj] Specify a different directory for gsb files

Ervin Oswaldo Escobar Salazar ervinoswaldoescobar at gmail.com
Fri Aug 31 03:52:06 EDT 2007

I would like to point out that my question makes a lot of sense...
Frank, i am using a hosting service where every user has assigned a
specified directory (for instance c:\users\...\...\user7771) and so we have
no administrative privileges. In addition, we are using a server side
scripting language to develop a guided interface to PROJ.4, so i do not
expect to be able to fix environment variables nor write on c:\proj

Anyway, on my servers, where i have all the administrative privileges, i've
been carrying some tests according to your recommendations:

- I tried to include in the command line the path to the gsb file: for
instance +nadgrids=c:\proj\xnad\myfile.gsb (notice that i have introduced
xnad instead of nad, and obviously renamed the nad folder to xnad
previosly). The RESULT DOES NOT WORK. Testing with some coordinates didn't
make the NTV2 datum shifting.
- I also tried to set a new environment variable form the DOS prompt, with
the sentence: set PROJ_LIB=C:\PROJ\XNAD. Afterwards, and also from the DOS
prompt, the sentence SET reports the successful creation of the variable
pointing at the specified path. In spite of all of this, the RESULT DOES NOT
WORK. Testing again with some coordinates, didn't make the NTV2 datum

Any other idea? If the first option would work (to introduce the path of the
gsb file in the command line of cs2cs) it would be fine for me, because i am
using a shell to execute command line sentences through a server side
scripting languaje.

Thanks to both of you for your attention and responses.

2007/8/29, Frank Warmerdam <warmerdam at pobox.com>:
> Ervin Oswaldo Escobar Salazar wrote:
> > Uff.. I cannot access to the configuration of the server... cannot set
> > environment variables nor writing at c:\proj
> > Any other idea?? I am completely knocked out.
> Ervin,
> Well, what can you modify?  There are also build time things, and changes
> that can be made in the code to modify this but it seems unlikely you can
> apply such changes if you can't alter the environment.
> Can you affect the cs2cs commandline?  (If so, why can't you set
> environment
> variables!)  You can give a specific path a gsb file on the commandline
> with the +nadgrids directive.
> eg.
> +nadgrids=D:\abc.gsb
> The more I think about it, the more irritating it is that you ask this
> question without explaining the constraints on your situation!
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGeo, http://osgeo.org
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20070831/e2724976/attachment.html

More information about the Proj mailing list