On 04/09/2012 11:00 AM, RichardC wrote:
Hi, After installing 6.4.2 from source, attempting to insert a spatial reference system for a new location (/Select EPSG code for spatial reference system/) was giving an error that it was unable to find EPSG codes at /usr/local/share/proj/epsg At first I found this same problem. I have proj and proj-devel installed by the package manager (yum on Scientific Linux 6) and GRASS 6.4.2 self compiled. I double checked the ./configure line to make sure I had: --with-proj-share="/usr/share/proj" Then I got the following output after running configure: checking for location of External PROJ.4 includes... checking for proj_api.h... yes checking External PROJ.4 version... 470 checking for location of External PROJ.4 library... checking for pj_get_def in -lproj... yes checking for location of External PROJ.4 data files... /usr/share/proj checking for /usr/share/proj/epsg... yes Now, after compiling and installing, I *still* got the error message that Richard mentioned when I tried to create a Location with the wizard, but then, after choosing "Select EPSG code..." I had a window to choose the correct path to the epsg file. Only then it worked as expected. Thanks, Micha The configuration commands (--with-proj-share="/usr/share/proj/" ) did not seem to make a difference?My solution was to copy the proj directory and contents from /usr/share/proj to to /usr/local/share sudo cp -r /usr/share/proj /usr/local/share/ Has anyone else encountered this problem, or perhaps my configuration options below need amending? ./configure \ --enable-debug \ --enable-largefile \ --with-libs=/usr/lib64 \ --with-geos=/usr/bin/geos-config/ \ --with-cxx \ --with-readline \ --with-freetype=yes \ --with-freetype-includes="/usr/include/freetype2/" \ --enable-largefile=yes \ --with-geos=yes \ --with-cairo \ --with-tcltk-includes="/usr/include/tcl8.5/" \ --with-wxwidgets \ --with-postgres=yes \ --with-postgres-includes="/usr/include/postgresql/" \ --with-sqlite=yes \ --with-python=yes \ --with-opengl-libs="/usr/include/GL" \ --with-ffmpeg=yes \ --with-ffmpeg-includes="/usr/include/libavcodec /usr/include/libavformat /usr/include/libswscale" \ --with-lapack=yes \ --with-nls=yes \ --with-motif=yes \ --with-readline=yes \ --with-python=yes \ --with-proj-share="/usr/share/proj/" \ Cheers, Richard -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Unable-to-select-EPSG-code-for-location-tp4715353p4715353.html Sent from the Grass - Users mailing list archive at Nabble.com. _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System.
|
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
