[GRASS-dev] [GRASS GIS] #3763: db.out.ogr Fails with bogus overwrite error
GRASS GIS
trac at osgeo.org
Wed Feb 27 01:52:42 PST 2019
#3763: db.out.ogr Fails with bogus overwrite error
-------------------------+-------------------------
Reporter: micha | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Database | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
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.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3763>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list