[GRASS-dev] [GRASS GIS] #3492: r.texture overwrites without --o flag and without any warning when map exists

#3492: r.texture overwrites without --o flag and without any warning when map
exists
-------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Keywords: r.texture | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by mlennert):

I didn't find a function of the sorts
open_raster_new_if_not_exist_else_fatal, so the attached patch is what I
found. It bails out after the first existing map found and only mentions
that. Maybe it would be more elegant to collect all found maps and output
the names of all the existing maps, but please already test this.

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by mlennert):

* Attachment "r_texture_overwrite.diff" added.

diff for checking if maps exist

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by veroandreo):

Sorry for the delay, tested and it works fine. Thanks!

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by mlennert):

I committed a version with slightly modified wording to trunk in r72380.
Candidate for backport to 7.4 ?

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by martinl):

Replying to [comment:3 mlennert]:
> I committed a version with slightly modified wording to trunk in r72380.
Candidate for backport to 7.4 ?

+1

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

#3492: r.texture overwrites without --o flag and without any warning when map
exists
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.4.1
Component: Raster | Version: unspecified
Resolution: fixed | Keywords: r.texture
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by mlennert):

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

Comment:

Replying to [comment:3 mlennert]:
> I committed a version with slightly modified wording to trunk in r72380.
Candidate for backport to 7.4 ?

Backported to 7.4 (r72500) and 7.2 (r72501).

Closing the ticket.

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