Opened 12 years ago

Closed 10 years ago

#1626 closed defect (fixed)

cannot overwrite existing vector with r.contour

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Database Version: svn-trunk
Keywords: r.contour, sqlite Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Change History (2)

comment:1 by wenzeslaus, 10 years ago

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.

comment:2 by neteler, 10 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.