[GRASS-dev] [GRASS-SVN] r68435 - grass/trunk/lib/proj

W dniu 15.05.2016 o 23:45, svn_grass@osgeo.org pisze:

+TODO: It is recommended to rely on PROJ4's proj-nad package. For doing so,
+ there would be some changes needed to lib/proj/get_proj.c - the call
+ to pj_set_finder() should be removed so that PROJ looks in its default
+ locations for the files. Also changes needed to lib/proj/Makefile so
+ it no longer creates the /etc/proj and /etc/proj/nad directories within
+ a GRASS installation nor installs the files there.

Another option might be not to search for the grids in any particular
directory, but to rely on a user-provided full path to the grid file in
the PROJ_INFO.

cs2cs, gdalwarp etc. allow the "nadgrids" to be a full path to a grid file.

Maciek

On Fri, May 20, 2016 at 9:18 AM, Maciej Sieczka <msieczka@sieczka.org> wrote:

W dniu 15.05.2016 o 23:45, svn_grass@osgeo.org pisze:

+TODO: It is recommended to rely on PROJ4's proj-nad package. For doing so,
+ there would be some changes needed to lib/proj/get_proj.c - the call
+ to pj_set_finder() should be removed so that PROJ looks in its default
+ locations for the files. Also changes needed to lib/proj/Makefile so
+ it no longer creates the /etc/proj and /etc/proj/nad directories within
+ a GRASS installation nor installs the files there.

Another option might be not to search for the grids in any particular
directory, but to rely on a user-provided full path to the grid file in
the PROJ_INFO.

cs2cs, gdalwarp etc. allow the "nadgrids" to be a full path to a grid file.

To me this sounds quite reasonable.

Please add this suggestion to the ticket
https://trac.osgeo.org/grass/ticket/2456

thanks
Markus

W dniu 20.05.2016 o 15:02, Markus Neteler pisze:

On Fri, May 20, 2016 at 9:18 AM, Maciej Sieczka <msieczka@sieczka.org> wrote:

W dniu 15.05.2016 o 23:45, svn_grass@osgeo.org pisze:

+TODO: It is recommended to rely on PROJ4's proj-nad package. For doing so,
+ there would be some changes needed to lib/proj/get_proj.c - the call
+ to pj_set_finder() should be removed so that PROJ looks in its default
+ locations for the files. Also changes needed to lib/proj/Makefile so
+ it no longer creates the /etc/proj and /etc/proj/nad directories within
+ a GRASS installation nor installs the files there.

Another option might be not to search for the grids in any particular
directory, but to rely on a user-provided full path to the grid file in
the PROJ_INFO.

cs2cs, gdalwarp etc. allow the "nadgrids" to be a full path to a grid file.

To me this sounds quite reasonable.

Please add this suggestion to the ticket
https://trac.osgeo.org/grass/ticket/2456

Done.

--
Maciej Sieczka
http://www.sieczka.org