[GRASS-dev] Re: [GRASS GIS] #1158: Removing vector map in Windows fails with "Unable to delete vector map"

GRASS GIS trac at osgeo.org
Sat Sep 10 12:35:54 EDT 2011


#1158: Removing vector map in Windows fails with "Unable to delete vector map"
--------------------------+-------------------------------------------------
  Reporter:  lponti       |       Owner:  grass-dev@…                                                 
      Type:  defect       |      Status:  closed                                                      
  Priority:  blocker      |   Milestone:  6.4.2                                                       
 Component:  Vector       |     Version:  6.4.0                                                       
Resolution:  fixed        |    Keywords:  wingrass, g.mremove, wildcards, v.in.ogr, v.select, g.remove
  Platform:  MSWindows 7  |         Cpu:  Unspecified                                                 
--------------------------+-------------------------------------------------
Changes (by mmetz):

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


Comment:

 Replying to [comment:50 lutra]:
 >
 > > Selecting multiple vectors (in the QGIS/GRASS mapset browser) and
 removing them (with the remove button) leads to corruption of the vectors,
 the mapset become unusable and it is needed to delete manually the vector
 folders/files (not before closing QGIS).
 >
 > after all it seems if that no one of the selected vectors is being
 rendered in the QGIS canvas, then is possible to remove them without any
 issue.

 A file can not be removed as long as it is kept open by some application.
 This is a universal feature I guess. At least it applies to Linux and MS
 Windows.

 I see two possibilities to fix this QGIS bug:

 1. QGIS must close all corresponding files once it has finished rendering
 a GRASS vector or raster map. It can still be displayed in the QGIS canvas
 after rendering but the files must be closed.

 2. The QGIS-GRASS plugin handling of g.remove and g.mremove (and pretty
 much all modules producing an output raster or vector map) must make sure
 that the maps to be deleted (or overwritten) are not kept open by QGIS.

 Closing this ticket because it has been confirmed to work with GRASS and
 remains a problem with the QGIS-GRASS plugin.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1158#comment:51>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list