Opened 7 years ago

Closed 7 years ago

#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 7 years ago.
diff for checking if maps exist

Download all attachments as: .zip

Change History (6)

comment:1 by mlennert, 7 years ago

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.

by mlennert, 7 years ago

Attachment: r_texture_overwrite.diff added

diff for checking if maps exist

comment:2 by veroandreo, 7 years ago

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

comment:3 by mlennert, 7 years ago

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

in reply to:  3 comment:4 by martinl, 7 years ago

Replying to mlennert:

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

+1

in reply to:  3 comment:5 by mlennert, 7 years ago

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.