[GRASS-dev] Re: [GRASS GIS] #70: imagery modules: strip @mapset part

GRASS GIS trac at osgeo.org
Sat Jun 21 04:32:32 EDT 2008


#70: imagery modules: strip @mapset part
----------------------+-----------------------------------------------------
  Reporter:  hamish   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  6.4.0                    
 Component:  default  |     Version:  svn-trunk                
Resolution:           |    Keywords:  imagery                  
----------------------+-----------------------------------------------------
Comment (by neteler):

 I have found a new related bug: -r of i.group fails.

 {{{
 g.gisenv set=DEBUG=3
 GRASS 6.4.svn (nc_spm_07): > i.group -r mylsat7_2000 sub=mylsat7_2000
 in=lsat7_2000_61
 D3/3: remove_subgroup_files: ref_tmp.nfiles 8
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[0].name: lsat7_2000_10
 D3/3: mapset neteler, ref_tmp.file[0].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[1].name: lsat7_2000_20
 D3/3: mapset neteler, ref_tmp.file[1].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[2].name: lsat7_2000_30
 D3/3: mapset neteler, ref_tmp.file[2].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[3].name: lsat7_2000_40
 D3/3: mapset neteler, ref_tmp.file[3].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[4].name: lsat7_2000_50
 D3/3: mapset neteler, ref_tmp.file[4].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[5].name: lsat7_2000_61
 D3/3: mapset neteler, ref_tmp.file[5].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[6].name: lsat7_2000_70
 D3/3: mapset neteler, ref_tmp.file[6].mapset: landsat
 D3/3: tmp_name lsat7_2000_61, ref_tmp.file[7].name: lsat7_2000_80
 D3/3: mapset neteler, ref_tmp.file[7].mapset: landsat
 D1/3: writing subgroup REF
 D2/3: G__home home = /home/neteler
 WARNING: No raster map removed
 i.group complete.
 }}}

 It compares the wrong mapsets here (G_mapset() should possibly not
 used on the left side, see function remove_subgroup_files() of main.c of
 i.group.

 Markus

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


More information about the grass-dev mailing list