[GRASS-dev] Re: [GRASS GIS] #1165: wingrass: cs2cs fails from the
msys command line
GRASS GIS
trac at osgeo.org
Mon Sep 20 15:04:09 EDT 2010
#1165: wingrass: cs2cs fails from the msys command line
--------------------------------+-------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Projections/Datums | Version: svn-develbranch6
Keywords: cs2cs, wingrass | Platform: MSWindows XP
Cpu: x86-64 |
--------------------------------+-------------------------------------------
Comment(by hellik):
Replying to [comment:2 hamish]:
> Even after applying Helmut's GDAL_DATA path fix (r43520) to the
destination files by hand, this still fails for me in 6.5svn on XP in the
same way, both Msys (etc/Init.sh) and DOS-box (grass65svn.bat).
>
> I don't think it will help here, but should that "set GDAL_DATA=" also
be added to mswindows/osgeo4w/ini.bat.tmpl as well?
>
>
> thanks,
> Hamish
Hi Hamish,
I think the GDAL_DATA variable is needed for the gdal stuff.
I've studied a little bit the proj4- and cs2cs-manpages and faq:
http://trac.osgeo.org/proj/wiki/man_cs2cs
http://trac.osgeo.org/proj/wiki/man_proj
from there I've found:
{{{
[...]
The environment parameter
PROJ_LIB establishes the default directory for a
file reference without an absolute path. This
is also used for supporting files like datum
shift files.
[...]
}}}
http://trac.osgeo.org/proj/wiki/FAQ#HowdoIbuildconfigurePROJ.4tosupportdatumshifting
{{{
[...]
A default build and install on Unix will normally build knowledge of the
directory where the grid shift files are installed into the PROJ.4 library
(usually /usr/local/share/proj). On Windows the library is normally built
thinking that C:\PROJ\NAD is the installed directory for the grid shift
files. If the built in concept of the PROJ.4 data directory is incorrect,
the PROJ_LIB environment can be defined with the correct directory.
[...]
}}}
so if I'm correct there are following variables that have to be set in
windows:
GRASS_PROJSHARE => needed by grass
GDAL_DATA => needed by the gdal-stuff
PROJ_LIB => needed by the proj4/cs2cs-stuff
best regards
Helmut
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1165#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list