[GRASS-dev] [GRASS GIS] #3763: db.out.ogr Fails with bogus overwrite error

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by micha):

* Attachment "db.out.ogr.diff" added.

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