Opened 5 years ago

Last modified 4 years ago

#3763 new defect

db.out.ogr Fails with bogus overwrite error

Reported by: micha Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Database Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

The current script for db.out.ogr tests for existence of a file named as <input>.dbf. If the file exists and overwrite is not specified, the script exists. This test is performed even if the format is not dbf. So all of the other formats will fail if such a dbf file already exists, even though those formats do not touch the dbf file.

For the case of dbf output the script deletes all existing shapefile components (*.shp, *.shx) so the test is certainly necessary for dbf format. But I think it is unnecessary for the other formats.

Attached is a suggested diff.

Attachments (1)

db.out.ogr.diff (753 bytes ) - added by micha 5 years ago.

Download all attachments as: .zip

Change History (2)

by micha, 5 years ago

Attachment: db.out.ogr.diff added

comment:1 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.