[GRASS-dev] [GRASS GIS] #3863: epsg file missing in GRASS 7.6.1 stable

#3863: epsg file missing in GRASS 7.6.1 stable
--------------------------------+---------------------------------
Reporter: lponti | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.2
Component: Projections/Datums | Version: svn-releasebranch76
Keywords: epsg | CPU: OSX/Intel
Platform: MacOSX |
--------------------------------+---------------------------------
epsg file appers to be missing in GRASS 7.6.1 stable for mac

from
/Applications/GRASS-7.6.app/Contents/Resources/share/proj

installed from bundled binaries at
http://grassmac.wikidot.com/downloads

on macOS 10.14.5 (18F203)

Encountered error when trying to create the first location on the first
startup using EPSG code but failed with error showing path to missing epsg
file.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3863&gt;
GRASS GIS <https://grass.osgeo.org>

#3863: epsg file missing in GRASS 7.6.1 stable
---------------------------------+---------------------------------
  Reporter: Luigi Ponti | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.2
Component: Projections/Datums | Version: svn-releasebranch76
Resolution: | Keywords: epsg
       CPU: OSX/Intel | Platform: MacOSX
---------------------------------+---------------------------------

Comment (by mmetz):

Replying to [ticket:3863 Luigi Ponti]:
> epsg file appers to be missing in GRASS 7.6.1 stable for mac
>
> from
> /Applications/GRASS-7.6.app/Contents/Resources/share/proj
>
> installed from bundled binaries at
> http://grassmac.wikidot.com/downloads

The epsg file is missing because the bundle uses proj-6.0.0 which no
longer has an epsg file.

GRASS 7.6 is not compatible with proj-6+, please rebuild with proj-5.x.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3863#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3863: epsg file missing in GRASS 7.6.1 stable
---------------------------------+---------------------------------
  Reporter: Luigi Ponti | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.2
Component: Projections/Datums | Version: svn-releasebranch76
Resolution: | Keywords: epsg
       CPU: OSX/Intel | Platform: MacOSX
---------------------------------+---------------------------------
Changes (by Luigi Ponti):

* cc: Luigi Ponti (added)

Comment:

Replying to [comment:1 mmetz]:
> Replying to [ticket:3863 Luigi Ponti]:
> > epsg file appers to be missing in GRASS 7.6.1 stable for mac
> >
> > from
> > /Applications/GRASS-7.6.app/Contents/Resources/share/proj
> >
> > installed from bundled binaries at
> > http://grassmac.wikidot.com/downloads
>
> The epsg file is missing because the bundle uses proj-6.0.0 which no
longer has an epsg file.
>
> GRASS 7.6 is not compatible with proj-6+, please rebuild with proj-5.x.

Thanks and my apologies -- I suspected something like that but was unable
to figure it out.

(I did something really wrong which appears to work, however: copied epsg
from another GRASS 7.4.1 precompiled bundle installation from the same
source I had on the same machine.)

I now see it in release notes for proj-6.0.0 that all CRS stuff in the
proj.db SQLite3 database file:
https://proj.org/news.html#id41

I wonder why the bundle was built with an incompatible proj-6 libary -- it
that going to break a lot of GRASS functionality other than the missing
epsg file?

Should I close the bug as it is apparently not a bug?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3863#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3863: epsg file missing in GRASS 7.6.1 stable
---------------------------------+---------------------------------
  Reporter: Luigi Ponti | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.6.2
Component: Projections/Datums | Version: svn-releasebranch76
Resolution: | Keywords: epsg
       CPU: OSX/Intel | Platform: MacOSX
---------------------------------+---------------------------------

Comment (by mmetz):

Replying to [comment:2 Luigi Ponti]:
>
> I wonder why the bundle was built with an incompatible proj-6 libary --
it that going to break a lot of GRASS functionality other than the missing
epsg file?

Yes, reprojections are affected because the bahviour of proj changed:
previously, it expected coordinates in the order east, north. Now it
depends on the CRS definition, e.g. commonly used EPSG:4326 defines an
order of north, east. Previously it expected coordinates for ll to be in
radians, now it also depends on the CRS definition (commonly degrees, not
radians for ll). That means even if you patch in the old epsg file,
coordinate transformations might be wrong. Not to mention the new temporal
dimension and the new availability of more accurate transformation
pipelines.
>
> Should I close the bug as it is apparently not a bug?

Maybe we should add a configure check for proj-6+ to GRASS 7.6.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3863#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>