[GRASS-dev] Re: [GRASS GIS] #1158: g.mremove fails when used with wildcard in WinGRASS-6.4.0-1

GRASS GIS trac at osgeo.org
Thu Oct 28 14:06:47 EDT 2010


#1158: g.mremove fails when used with wildcard in WinGRASS-6.4.0-1
----------------------------------+-----------------------------------------
 Reporter:  lponti                |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  major                 |   Milestone:  6.4.1                    
Component:  Vector                |     Version:  6.4.0                    
 Keywords:  g.mremove, wildcards  |    Platform:  MSWindows 7              
      Cpu:  x86-32                |  
----------------------------------+-----------------------------------------
Changes (by lponti):

  * priority:  normal => major


Comment:

 This also happens every time I use a command that has vector output using
 the --overwrite flag, and the output vector already exists, e.g.:


 {{{
 g.copy vect=streets_wake_large,streets_wake_large_tmp
 }}}

 First attempt does not work:

 {{{
 (Thu Oct 28 19:43:11 2010)
 v.select --overwrite ainput=streets_wake_large
 binput=census_extract_all_trt2000 output=streets_wake_large_tmp
 Vector map <streets_wake_large_tmp> already exists and will be overwritten
 Unable to delete file
 'C:\cygwin\home\andy/nc_spm_08/user1/vector/streets_wake_large_tmp/hist'
 ERROR: Unable to delete vector map <streets_wake_large_tmp>
 (Thu Oct 28 19:43:11 2010) Command finished (0 sec)
 }}}

 Second try is fine:

 {{{
 (Thu Oct 28 19:43:33 2010)
 v.select --overwrite ainput=streets_wake_large
 binput=census_extract_all_trt2000 output=streets_wake_large_tmp
 Vector map <streets_wake_large_tmp> already exists and will be overwritten
 Processing features...
 Processing areas...
 Writing selected features...
 Sto scrivendo gli attributi
 Building topology for vector map <streets_wake_large_tmp>...
 Registering primitives...
 76 primitives registered
 388 vertices registered
 Building areas...
 0 areas built
 0 isles built
 Attaching islands...
 Attaching centroids...
 Number of nodes: 77
 Number of primitives: 76
 Number of points: 0
 Number of lines: 76
 Number of boundaries: 0
 Number of centroids: 0
 Number of areas: 0
 Number of isles: 0
 v.select completo.
 (Thu Oct 28 19:43:35 2010) Command finished (1 sec)
 }}}

 Maybe it is an issue of the OS: anybody able to reproduce it on XP? (I
 used same settings as my previous comment.)

 Exactly the same thing happens when using g.remove on
 streets_wake_large_tmp as you need to run the command twice.

 This would mean that the problem is not the wildcards.

 I am changing priority to major because being unable to remove vectors
 seems a serious issue. Please, provide feedback on this.

 Kind regards,

 Luigi

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



More information about the grass-dev mailing list