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

GRASS GIS trac at osgeo.org
Fri Sep 9 05:47:11 EDT 2011


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

Comment(by lutra):

 Giuseppe Sucameli (Faunalia) made to compile the necessary packages (qgis-
 trunk and GRASS 6.4.2svn, latest revisions) for osgeo4w and so I made the
 necessary tests (mostly using the QGIS/GRASS interface)

 The issue described in this ticket seems "fixed," but with some
 limitations.

 It is possible now to remove '''one''' vector at the same time using the
 proper button in the QGIS/GRASS plugin.

 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).

 This problem does not affect g.remove used in the GRASS shell (launched
 via the QGIS/GRASS plugin) nor the g.remove GRASS GUI (launched via the
 QGIS/GRASS shell), so it seems that is a QGIS only problem.

 Another issue is that if a GRASS vector is rendered in the QGIS canvas and
 you try to remove it (using the plugin button, '''or''' g.remove from the
 CLI '''or''' the GRASS GUI) then it becomes corrupted: the command removes
 the dbf file, but cannot make to delete the files "hist" and "topo" in the
 folder named after the vector. This because the files are in use by QGIS,
 and it is not possible to remove them even manually, if not closing QGIS.

 On the QGIS/GRASS plugin side we are thinking to not allow remove any
 vector that is being rendered in the canvas, but the problem would still
 affect the CLI and the g.remove GRASS native interface.

 Not sure if the problem when removing multiple vectors is related or not.


 http://ubuntuone.com/2lRa1ReYqBIoP9daJXjaU9

 GRASS 6.4.2svn

 http://ubuntuone.com/78DkQJB5qmuOHogTC3aXIf

 QGIS trunk compiled for GRASS svn

 http://ubuntuone.com/16JW6U3PXY19n22L6NZ6MB

 launcher for the above QGIS binary

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



More information about the grass-dev mailing list