<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
    text="#000000">
    On 04/09/2012 11:00 AM, RichardC wrote:
    <blockquote cite="mid:1333958449388-4715353.post@n6.nabble.com"
      type="cite">
      <pre wrap="">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
</pre>
    </blockquote>
    <br>
    At first I found this same problem.<br>
    <br>
    I have proj and proj-devel installed by the package manager (yum on
    Scientific Linux 6) and GRASS 6.4.2 self compiled. <br>
    I double checked the ./configure line to make sure I had:<br>
    --with-proj-share="/usr/share/proj"<br>
    <br>
    Then I got the following output after running configure:<br>
    <br>
    checking for location of External PROJ.4 includes... <br>
    checking for proj_api.h... yes<br>
    checking External PROJ.4 version... 470<br>
    checking for location of External PROJ.4 library... <br>
    checking for pj_get_def in -lproj... yes<br>
    checking for location of External PROJ.4 data files...
    /usr/share/proj<br>
    checking for /usr/share/proj/epsg... yes<br>
    <br>
    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.<br>
    <br>
    <br>
    Thanks,<br>
    Micha<br>
    <br>
    <blockquote cite="mid:1333958449388-4715353.post@n6.nabble.com"
      type="cite">
      <pre wrap="">
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: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/Unable-to-select-EPSG-code-for-location-tp4715353p4715353.html">http://osgeo-org.1560.n6.nabble.com/Unable-to-select-EPSG-code-for-location-tp4715353p4715353.html</a>
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>

This mail was received via Mail-SeCure System.


</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>