Let me try to clarify with an example. Suppose I have two different
mapsets, Ethiopia and Ethiopiabackup, each with a number of layers with the
same name. Now, if I use (just selecting 1 layer to keep the example short):

*g.mlist type=rast pattern=fireprob_rf1 mapset=Ethiopia*

Gives me:




*fireprob_rf1raster map(s) available in mapset <Ethiopia>:WARNING:
'cell/fireprob_rf1' was found in more mapsets (also found in
<Ethiopiabackup>)WARNING: Using <fireprob_rf1@Ethiopia>*

If I use

g.mlist type=rast pattern=fireprob_rf1

I get:








*fireprob_rf1fireprob_rf1@Ethiopiabackupraster map(s) available in mapset
<Ethiopia>:WARNING: 'cell/fireprob_rf1' was found in more mapsets (also
found in <Ethiopiabackup>)WARNING: Using <fireprob_rf1@Ethiopia>raster
map(s) available in mapset <Ethiopiabackup>:WARNING: 'cell/fireprob_rf1'
was found in more mapsets (also found in <Ethiopiabackup>)WARNING: Using
<fireprob_rf1@Ethiopia>*

In both cases the warnings are redundant. In example one I am only
interested in what is in the mapset Ethiopia, thus, no need to tell me
similar layers are in the mapset *Ethiopiabackup* or that the ones in the
mapset Ethiopia will be used (what does that mean anyway, the function is
to list the names of the layers, not to use them in any way). In example
two, I can see from the list of layers that there are layers with the same
name that come from different mapset. No need to warn me again.

I don't think those warnings were displayed in earlier grass 7.0 version
and I just checked and they are certainly not in 6.4.





On Fri, Apr 18, 2014 at 1:09 PM, GRASS GIS <t...@osgeo.org> wrote:

> #2255: g.mlist warnings for layers found in other mapsets
>
> -------------------------+--------------------------------------------------
>  Reporter:  pvanbosgeo   |       Owner:  grass-dev@…
>      Type:  defect       |      Status:  new
>  Priority:  normal       |   Milestone:  7.1.0
> Component:  Default      |     Version:  unspecified
>  Keywords:               |    Platform:  Unspecified
>       Cpu:  Unspecified  |
>
> -------------------------+--------------------------------------------------
>
> Comment(by neteler):
>
>  Not sure what the issue is... here an example:
>
>  {{{
>  grass71 -c ~/grassdata/nc_spm_08_grass7/user2
>
>  GRASS 7.1.svn (nc_spm_08_grass7):~ > g.mlist rast
>  raster map(s) available in mapset <PERMANENT>:
>  aspect
>  basin_50K
>  ...
>  elev_state_500m
>  elevation
>  elevation_shade
>  ...
>  zipcodes
>  zipcodes_dbl
>  GRASS 7.1.svn (nc_spm_08_grass7):~ >
>
>  # now copy over "elevation" map as found in search path to
>  # current mapset:
>  GRASS 7.1.svn (nc_spm_08_grass7):~ > g.copy rast=elevation,elevation
>  Copy raster <elevation@PERMANENT> to current mapset as <elevation>
>
>  # list again:
>  GRASS 7.1.svn (nc_spm_08_grass7):~ > g.mlist rast
>  raster map(s) available in mapset <user2>:
>  WARNING: 'cell/elevation' was found in more mapsets (also found in
>           <PERMANENT>)
>  WARNING: Using <elevation@user2>
>  elevation
>  raster map(s) available in mapset <PERMANENT>:
>  aspect
>  basin_50K
>  boundary_county_500m
>  ...
>  elev_state_500m
>  WARNING: 'cell/elevation' was found in more mapsets (also found in
>           <PERMANENT>)
>  WARNING: Using <elevation@user2>
>  elevation@PERMANENT
>  elevation_shade
>  facility
>  ...
>  zipcodes_dbl
>  GRASS 7.1.svn (nc_spm_08_grass7):~ >
>
>  GRASS 7.1.svn (nc_spm_08_grass7):~ > g.mapsets -l
>  Available mapsets:
>  PERMANENT landsat neteler user1 user2
>
>  GRASS 7.1.svn (nc_spm_08_grass7):~ > g.mapsets -p
>  Accessible mapsets:
>  user2 PERMANENT
>  }}}
>
>  So it tells the user that the map "elevation" exists multiple times in
>  the search path ("Accessible mapsets")... Guess that's how it should be.
>
> --
> Ticket URL: <http://trac.osgeo.org/grass/ticket/2255#comment:1>
> GRASS GIS <http://grass.osgeo.org>
>
>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to