#3492 closed defect (fixed)

r.texture overwrites without --o flag and without any warning when map exists

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.4.1
Component: Raster Version: unspecified
Keywords: r.texture Cc:
CPU: Unspecified Platform: Unspecified

Description


Attachments (1)

r_texture_overwrite.diff (1.8 KB) - added by mlennert 22 months ago.
diff for checking if maps exist

Download all attachments as: .zip

Change History (6)

comment:1 Changed 22 months ago 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.

Changed 22 months ago by mlennert

Attachment: r_texture_overwrite.diff added

diff for checking if maps exist

comment:2 Changed 21 months ago by veroandreo

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

comment:3 Changed 21 months ago by mlennert

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

comment:4 in reply to:  3 Changed 21 months ago by martinl

Replying to mlennert:

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

+1

comment:5 in reply to:  3 Changed 21 months ago by mlennert

Resolution: fixed
Status: newclosed

Replying to 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.

Note: See TracTickets for help on using tickets.