[GRASS-dev] [GRASS GIS] #1626: cannot overwrite existing vector with r.contour

#1626: cannot overwrite existing vector with r.contour
-------------------------------+--------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: r.contour, sqlite | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
Even if the --overwrite flag is set, attempting to overwrite an existing
file with r.contour gives an SQLite error.

{{{

GRASS 7.0.svn (Global_latlon):~ > r.contour --overwrite
input=CCSM4_1000may.currspeed@paleoclimate_currents
output=CCSM4_1000may_currspeed step=4
DBMI-SQLite driver error:
Error in sqlite3_prepare():
table CCSM4_1000may_currspeed already exists

ERROR: Unable to create table: 'create table CCSM4_1000may_currspeed ( cat
        integer, level double precision )'
}}}

I haven't tested it, but this may be more widespread and affect any
attempt to overwrite an existing vector file.

Michael

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

#1626: cannot overwrite existing vector with r.contour
-------------------------------+--------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: r.contour, sqlite | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------+--------------------------------------------

Comment(by wenzeslaus):

I'm not getting this error with current trunk (GRASS 7, r59147) on Ubuntu
12.04. I know currently only about #2172 (g.remove takes too long to
remove vector on Windows) which influences also removal of old vector map.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1626#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1626: cannot overwrite existing vector with r.contour
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Resolution: fixed | Keywords: r.contour, sqlite
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Tested again, overwrite works. Closing, feel free to reopen if needed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1626#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>