[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 17:29:18 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                |  
----------------------------------+-----------------------------------------

Comment(by hellik):

 Replying to [comment:10 glynn]:
 > Replying to [comment:9 lponti]:
 >
 > I note that there haven't been any responses to comment:9.
 >
 > I don't think that anything is going to happen on this until someone
 fires up a debugger and confirms or refutes that.


 {{{
 g.list type=vect mapset=deletevectors
 ----------------------------------------------
 vector Dateien im Mapset <deletevectors> vorhanden:
 busroute1 busroute2 busroute3
 }}}

 first run

 {{{
 g.mremove -f vect=bus*
 Entferne vector <busroute1>.
 'vector/busroute1' wurde in mehreren Mapsets gefunden (auch gefunden in
 <PERMANENT>).
 Verwende <busroute1 at deletevectors>
 D3/3: Delete vector 'busroute1'
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute1/dbln
 D1/3: Vect_open_old(): name = busroute1 mapset=
 deletevectors update = 0
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D3/3: dig_init_plus()
 D1/3: dig_spidx_init()
 D3/3: dig_cidx_init()
 D1/3: open format file:
 'deletevectors/vector/busroute1/frmt'
 D1/3: Vector format: 0 (native)
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Vect__read_head(): vector = busroute1 at deletevectors
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Level request = 1
 D1/3: Vect_open_old(): vector opened on level 1
 D1/3: Vect_read_dblinks(): map = busroute1, mapset =
 deletevectors
 D3/3: Searching for FID column in OGR DB
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute1/dbln
 D1/3: dbln: 1 busroute1 cat
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
 D3/3: Field number <1>, name <(null)>
 D3/3: Vect_check_dblink: field 1
 D1/3: field = 1 name = (null), table = busroute1, key = cat,
 database = $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, driver =
 dbf
 D1/3: Dblinks read
 D1/3: Vect_get_dblink(): link = 0
 D3/3: Vect_subst_var(): in =
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, map = busroute1,
 mapset = deletevectors
 D3/3:   -> C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D3/3: Delete drv:db:table 'dbf:C:\gisdata\grassdata/nc_spm_0
 8/deletevectors/dbf/:busroute1'
 D3/3: db_start_driver_open_database():
   drvname = dbf, dbname =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute1 name = busroute1.dbf
 D2/3: add_table(): table = busroute2 name = busroute2.dbf
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D2/3: table = busroute1 -> busroute1
 D2/3: save_table 0
 D2/3: save_table 1
 D2/3: save_table 2
 D3/3: db_delete_table(): driver = dbf, db =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/, table =
 busroute1
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute1 name = busroute1.dbf
 D2/3: add_table(): table = busroute2 name = busroute2.dbf
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D3/3: drop table busroute1
 D3/3: SQL statement parsed successfully: drop table
 busroute1
 D2/3: find_table(): table = busroute1
 D2/3:   ? busroute1
 D2/3: load_table_head(): tab = 0, C:\gisdata\grassdata/nc_sp
 m_08/deletevectors/dbf//busroute1.dbf
 D2/3:   ncols = 2
 D2/3:   DBFFieldType 1
 D3/3: add_column(): tab = 0, type = 2, name = cat, width =
 11, decimals = 0
 D2/3:   DBFFieldType 0
 D3/3: add_column(): tab = 0, type = 1, name = ROUTE, width =
 5, decimals = 0
 D3/3: Doing SQL command <2> on DBF table... (see
 include/sqlp.h)
 D2/3: save_table 0
 D2/3: save_table 1
 D2/3: save_table 2
 D1/3: Vect_close(): name = busroute1, mapset =
 deletevectors, format = 0, level = 1
 D1/3: close history file
 D3/3: opendir 'C:\gisdata\grassdata/nc_spm_08/deletevectors/
 vector/busroute1'
 D3/3: file = '.'
 D3/3: file = '..'
 D3/3: file = 'cidx'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/cidx'
 D3/3: file = 'coor'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/coor'
 D3/3: file = 'dbln'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/dbln'
 D3/3: file = 'head'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/head'
 D3/3: file = 'hist'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/hist'
 D3/3: file = 'topo'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute1/topo'
 D3/3: rename 'C:\gisdata\grassdata/nc_spm_08/deletevectors/v
 ector/busroute1' to
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/.tmp/3728.0'
 D3/3: remove directory
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/.tmp/3728.0'
 Entferne vector <busroute2>.
 D3/3: Delete vector 'busroute2'
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute2/dbln
 D1/3: Vect_open_old(): name = busroute2 mapset=
 deletevectors update = 0
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D3/3: dig_init_plus()
 D1/3: dig_spidx_init()
 D3/3: dig_cidx_init()
 D1/3: open format file:
 'deletevectors/vector/busroute2/frmt'
 D1/3: Vector format: 0 (native)
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Vect__read_head(): vector = busroute2 at deletevectors
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Level request = 1
 D1/3: Vect_open_old(): vector opened on level 1
 D1/3: Vect_read_dblinks(): map = busroute2, mapset =
 deletevectors
 D3/3: Searching for FID column in OGR DB
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute2/dbln
 D1/3: dbln: 1 busroute2 cat
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
 D3/3: Field number <1>, name <(null)>
 D3/3: Vect_check_dblink: field 1
 D1/3: field = 1 name = (null), table = busroute2, key = cat,
 database = $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, driver =
 dbf
 D1/3: Dblinks read
 D1/3: Vect_get_dblink(): link = 0
 D3/3: Vect_subst_var(): in =
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, map = busroute2,
 mapset = deletevectors
 D3/3:   -> C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D3/3: Delete drv:db:table 'dbf:C:\gisdata\grassdata/nc_spm_0
 8/deletevectors/dbf/:busroute2'
 D3/3: db_start_driver_open_database():
   drvname = dbf, dbname =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute2 name = busroute2.dbf
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D2/3: table = busroute2 -> busroute2
 D2/3: save_table 0
 D2/3: save_table 1
 D3/3: db_delete_table(): driver = dbf, db =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/, table =
 busroute2
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute2 name = busroute2.dbf
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D3/3: drop table busroute2
 D3/3: SQL statement parsed successfully: drop table
 busroute2
 D2/3: find_table(): table = busroute2
 D2/3:   ? busroute2
 D2/3: load_table_head(): tab = 0, C:\gisdata\grassdata/nc_sp
 m_08/deletevectors/dbf//busroute2.dbf
 D2/3:   ncols = 2
 D2/3:   DBFFieldType 1
 D3/3: add_column(): tab = 0, type = 2, name = cat, width =
 11, decimals = 0
 D2/3:   DBFFieldType 0
 D3/3: add_column(): tab = 0, type = 1, name = ROUTE, width =
 5, decimals = 0
 D3/3: Doing SQL command <2> on DBF table... (see
 include/sqlp.h)
 D2/3: save_table 0
 D2/3: save_table 1
 D1/3: Vect_close(): name = busroute2, mapset =
 deletevectors, format = 0, level = 1
 D1/3: close history file
 D3/3: opendir 'C:\gisdata\grassdata/nc_spm_08/deletevectors/
 vector/busroute2'
 D3/3: file = '.'
 D3/3: file = '..'
 D3/3: file = 'cidx'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/cidx'
 D3/3: file = 'coor'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/coor'
 D3/3: file = 'dbln'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/dbln'
 D3/3: file = 'head'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/head'
 D3/3: file = 'hist'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/hist'
 Kann Datei
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/vector/busroute2/hist' nicht
 löschen.
 konnte nicht entfernt werden.
 <busroute2> nichts gelöscht.
 Entferne vector <busroute3>.
 D3/3: Delete vector 'busroute3'
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute3/dbln
 D1/3: Vect_open_old(): name = busroute3 mapset=
 deletevectors update = 0
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D3/3: dig_init_plus()
 D1/3: dig_spidx_init()
 D3/3: dig_cidx_init()
 D1/3: open format file:
 'deletevectors/vector/busroute3/frmt'
 D1/3: Vector format: 0 (native)
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Vect__read_head(): vector = busroute3 at deletevectors
 D1/3: Vect_set_thresh(): thresh = 0.000000
 D1/3: Level request = 1
 D1/3: Vect_open_old(): vector opened on level 1
 D1/3: Vect_read_dblinks(): map = busroute3, mapset =
 deletevectors
 D3/3: Searching for FID column in OGR DB
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute3/dbln
 D1/3: dbln: 1 busroute3 cat
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
 D3/3: Field number <1>, name <(null)>
 D3/3: Vect_check_dblink: field 1
 D1/3: field = 1 name = (null), table = busroute3, key = cat,
 database = $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, driver =
 dbf
 D1/3: Dblinks read
 D1/3: Vect_get_dblink(): link = 0
 D3/3: Vect_subst_var(): in =
 $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/, map = busroute3,
 mapset = deletevectors
 D3/3:   -> C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D3/3: Delete drv:db:table 'dbf:C:\gisdata\grassdata/nc_spm_0
 8/deletevectors/dbf/:busroute3'
 D3/3: db_start_driver_open_database():
   drvname = dbf, dbname =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D2/3: table = busroute3 -> busroute3
 D2/3: save_table 0
 D3/3: db_delete_table(): driver = dbf, db =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/, table =
 busroute3
 D2/3: dbDbmscap(): opendir [c:\Program
 Files\GRASS-64-SVN\driver\db\]
 D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
 ""c:\Program Files\GRASS-64-SVN\driver\db\dbf.exe""
 D2/3: DBF: db__driver_open_database() name =
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/'
 D2/3: db.name =
 C:\gisdata\grassdata/nc_spm_08/deletevectors/dbf/
 D2/3: add_table(): table = busroute3 name = busroute3.dbf
 D3/3: drop table busroute3
 D3/3: SQL statement parsed successfully: drop table
 busroute3
 D2/3: find_table(): table = busroute3
 D2/3:   ? busroute3
 D2/3: load_table_head(): tab = 0, C:\gisdata\grassdata/nc_sp
 m_08/deletevectors/dbf//busroute3.dbf
 D2/3:   ncols = 2
 D2/3:   DBFFieldType 1
 D3/3: add_column(): tab = 0, type = 2, name = cat, width =
 11, decimals = 0
 D2/3:   DBFFieldType 0
 D3/3: add_column(): tab = 0, type = 1, name = ROUTE, width =
 5, decimals = 0
 D3/3: Doing SQL command <2> on DBF table... (see
 include/sqlp.h)
 D2/3: save_table 0
 D1/3: Vect_close(): name = busroute3, mapset =
 deletevectors, format = 0, level = 1
 D1/3: close history file
 D3/3: opendir 'C:\gisdata\grassdata/nc_spm_08/deletevectors/
 vector/busroute3'
 D3/3: file = '.'
 D3/3: file = '..'
 D3/3: file = 'cidx'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/cidx'
 D3/3: file = 'coor'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/coor'
 D3/3: file = 'dbln'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/dbln'
 D3/3: file = 'head'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/head'
 D3/3: file = 'hist'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/hist'
 Kann Datei
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/vector/busroute3/hist' nicht
 löschen.
 konnte nicht entfernt werden.
 <busroute3> nichts gelöscht.
 }}}

 second run

 {{{
 g.mremove -f vect=bus*
 Entferne vector <busroute2>.
 D3/3: Delete vector 'busroute2'
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute2/dbln
 D3/3: opendir 'C:\gisdata\grassdata/nc_spm_08/deletevectors/
 vector/busroute2'
 D3/3: file = '.'
 D3/3: file = '..'
 D3/3: file = 'hist'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/hist'
 D3/3: file = 'topo'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute2/topo'
 D3/3: rename 'C:\gisdata\grassdata/nc_spm_08/deletevectors/v
 ector/busroute2' to
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/.tmp/7964.0'
 D3/3: remove directory
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/.tmp/7964.0'
 Entferne vector <busroute3>.
 D3/3: Delete vector 'busroute3'
 D1/3: dbln file: C:\gisdata\grassdata/nc_spm_08/deletevector
 s/vector/busroute3/dbln
 D3/3: opendir 'C:\gisdata\grassdata/nc_spm_08/deletevectors/
 vector/busroute3'
 D3/3: file = '.'
 D3/3: file = '..'
 D3/3: file = 'hist'
 D3/3: delete file 'C:\gisdata\grassdata/nc_spm_08/deletevect
 ors/vector/busroute3/hist'
 Kann Datei
 'C:\gisdata\grassdata/nc_spm_08/deletevectors/vector/busroute3/hist' nicht
 löschen.
 konnte nicht entfernt werden.
 <busroute3> nichts gelöscht.
 }}}

 Helmut

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



More information about the grass-dev mailing list