[GRASS-dev] [GRASS GIS] #3514: Read EPSG codes with PROJ v.5 fails

#3514: Read EPSG codes with PROJ v.5 fails
-----------------------------------+-------------------------
Reporter: nila | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone:
Component: Startup | Version: unspecified
Keywords: PROJ_v.5 epsg startup | CPU: Unspecified
Platform: All |
-----------------------------------+-------------------------
As of version 5 of PROJ , the epsg file starts with a '<metadata>...'
line. The current code in gui::wxpython::core::utils.py::ReadEpsgCodes
doesn't take this into account.
This causes e.g. the creation of a new location in the startup based on
epsg code to fail.

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------
Changes (by martinl):

* milestone: => 7.0.7

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------

Comment (by rsbivand):

This is what I did in rgdal::make_EPSG():
[https://r-forge.r-project.org/scm/viewvc.php?view=rev&root=rgdal&revision=702]

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------

Comment (by martinl):

In [changeset:"72392" 72392]:
{{{
#!CommitTicketReference repository="" revision="72392"
Read EPSG codes with PROJ v.5 fails, see #3514
}}}

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------

Comment (by martinl):

Should be fixed in r72392 (trunk). Testing highly welcome before we do
backport to release branches.

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
* owner: grass-dev@… => martinl
* status: new => assigned

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.7
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------

Comment (by nila):

Thanks! Works fine for me on 7.4.0 under macOS, in Startup and
Preferences. Tested with the old type of epsg file as well as the new one.

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.4.1
Component: Startup | Version: unspecified
Resolution: | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------
Changes (by martinl):

* milestone: 7.0.7 => 7.4.1

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

#3514: Read EPSG codes with PROJ v.5 fails
--------------------------+-----------------------------------
  Reporter: nila | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 7.4.1
Component: Startup | Version: unspecified
Resolution: fixed | Keywords: PROJ_v.5 epsg startup
       CPU: Unspecified | Platform: All
--------------------------+-----------------------------------
Changes (by martinl):

* status: assigned => closed
* resolution: => fixed

Comment:

In [changeset:"72494" 72494]:
{{{
#!CommitTicketReference repository="" revision="72494"
Read EPSG codes with PROJ v.5 fails, fix #3514
}}}

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