[DebianGIS-dev] Bug#514904: /usr/share/proj/conus missing

Phil Endecott phil_nzuyy_endecott at chezphil.org
Wed Feb 11 20:08:07 UTC 2009

Some more info:

According to /usr/share/doc/proj/README.Debian, "The Debian proj 
package includes built-in datum conversion.  (It was compiled with 
proj-datumgrid-1.3.zip unpacked in the nad source directory.)"

According to the proj.4 FAQ (http://trac.osgeo.org/proj/wiki/FAQ): 
"Verify that you have the binary files (eg. 
/usr/local/share/proj/conus) installed on your system."

It seems that the package does not include /usr/local/share/proj/conus, 
according to "dpkg -L proj", though it does have some other files there.

Also from the FAQ, there's a PROJ_DEBUG environment variable.  Setting 
this I get:

$ cs2cs +proj=latlong +datum=NAD27 +to +proj=latlong +datum=NAD83
pj_open_lib(proj_def.dat): call fopen(/usr/share/proj/proj_def.dat) - succeeded
pj_open_lib(proj_def.dat): call fopen(/usr/share/proj/proj_def.dat) - succeeded
-117 30
pj_open_lib(conus): call fopen(/usr/share/proj/conus) - failed
pj_open_lib(alaska): call fopen(/usr/share/proj/alaska) - failed
pj_open_lib(ntv2_0.gsb): call fopen(/usr/share/proj/ntv2_0.gsb) - failed
pj_open_lib(ntv1_can.dat): call fopen(/usr/share/proj/ntv1_can.dat) - failed
117dW	30dN 0.000

So it does seem that it's the absence of this /usr/share/proj/conus 
file that's the problem.  Has it been accidentally omitted from the 
build, perhaps?

I also consider the fact that the program silently continues and prints 
a wrong answer when it has detected that the file is missing to be a bug.


More information about the Pkg-grass-devel mailing list