Bug#845321: cs2cs: epsg-file lookup problem

Tobias Megies megies at geophysik.uni-muenchen.de
Tue Nov 22 12:36:54 UTC 2016

Package: proj-bin
Version: 4.8.0-5
Severity: important

Dear Maintainer,

for me, `cs2cs` from package `proj-bin` fails to lookup the EPSG file
`/usr/share/proj/epsg` from package `proj-data` because it seems that that path
is not tried when searching for the epsg file:

$ cs2cs +init=epsg:4326 +to +init=epsg:2975
Using from definition: init=epsg:4326
Rel. 4.9.2, 08 September 2015
projection initialization failure
cause: no system list, errno: 2

program abnormally terminated

With some intuition and some internet searches, this problem can be fixed
rather easily by setting `PROJ_LIB` env variable:

$ export PROJ_LIB=/usr/share/proj
$ echo "12 34" | cs2cs +init=epsg:4326 +to +init=epsg:2975
-3790598.80     14838998.02 0.00

However I believe the user should not need to manually set the lookup path,
this should be handled internally by packaging. It was definitly not necessary
to manually set this path in older package versions as I was using "cs2cs" in
the same way on earlier Debian distributions (certainly in Debian squeeze, not
100% sure about Debian wheezy).

best regards,
Tobias Megies

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages proj-bin depends on:
ii  libc6     2.19-18+deb8u4
ii  libproj0  4.8.0-5

proj-bin recommends no packages.

proj-bin suggests no packages.

-- no debconf information

More information about the Pkg-grass-devel mailing list