[GRASS-dev] [GRASS GIS] #3999: Mention projection of current location in error message

#3999: Mention projection of current location in error message
--------------------------------+---------------------------------
Reporter: jidanni | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Projections/Datums | Version: git-releasebranch78
Keywords: | CPU: Unspecified
Platform: Unspecified |
--------------------------------+---------------------------------
{{{
$ grass --exec v.in.ogr -j input=e.geojson
WARNING: Projection of dataset does not appear to match current location.

          Dataset PROJ_INFO is:
          name: WGS 84
          datum: wgs84
          ellps: wgs84
          proj: ll
          no_defs: defined

          ERROR: proj
}}}

OK, it says
- Dataset PROJ_INFO is:
so it also should say
- Current location is:
even if the result is unknown (say so.) Yes even if the user forgot to run
it inside grass.

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

#3999: Mention projection of current location in error message
---------------------------------+---------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone: 7.8.3
Component: Projections/Datums | Version: git-releasebranch78
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
---------------------------------+---------------------------------

Comment (by neteler):

The projection non-/matching messages have been improved in
https://github.com/OSGeo/grass/pull/317

Is it ok now?

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

#3999: Mention projection of current location in error message
---------------------------------+---------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone: 7.8.3
Component: Projections/Datums | Version: git-releasebranch78
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
---------------------------------+---------------------------------

Comment (by jidanni):

Probably. I can't test for the next few months. So close this bug if it is
OK now.

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

#3999: Mention projection of current location in error message
---------------------------------+---------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: trivial | Milestone: 7.8.3
Component: Projections/Datums | Version: git-releasebranch78
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: Unspecified
---------------------------------+---------------------------------
Changes (by neteler):

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

Comment:

Ok, I'll close for now, feel free to reopen as needed with more tests.

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

#3999: Mention projection of current location in error message
---------------------------------+---------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: trivial | Milestone: 7.8.3
Component: Projections/Datums | Version: git-releasebranch78
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: Unspecified
---------------------------------+---------------------------------

Comment (by mmetz):

Replying to [comment:4 neteler]:
> Ok, I'll close for now, feel free to reopen as needed with more tests.

It should be re-opened or referenced by a new issue on github because in
this particular case, a XY location, nothing has changed in the messages,
the location projection is not reported. Modules to be fixed are
r.in.gdal, r.external, v.in.ogr, v.external.

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

#3999: Mention projection of current location in error message
---------------------------------+---------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: reopened
  Priority: trivial | Milestone: 7.8.3
Component: Projections/Datums | Version: git-releasebranch78
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
---------------------------------+---------------------------------
Changes (by neteler):

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

Comment:

See new https://github.com/OSGeo/grass/pull/368

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