<div dir="ltr">Martin,<div><br></div><div>g.mlist already has -t flag for printing element types.</div><div><span style="font-family:arial,sans-serif;font-size:13px">rast/x@g6</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">vect/b@g6</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">vect/obce6@g6</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">vect/kltm50@PERMANENT</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>Regarding all mapsets search, it should be (1) because a new flag for all mapsets & mapset=. (default for the current mapset) have a conflict meaning and can be confusing. Maybe, mapset=- (minus)?</div>
<div><br></div><div>Curious why we need all mapsets search..</div><div><br></div><div>Huidae</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 25, 2014 at 3:43 AM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I would like to modify `g.mlist` to enable listing multiple types from<br>
all mapsets in the given location. Now you can list multiple types<br>
from search path, ie.<br>
<br>
$ g.mlist rast,vect -m<br>
raster map(s) available in mapset <g6>:<br>
x@g6<br>
vector map(s) available in mapset <g6>:<br>
b@g6<br>
obce6@g6<br>
vector map(s) available in mapset <PERMANENT>:<br>
kltm50@PERMANENT<br>
lesy@PERMANENT<br>
merene_body@PERMANENT<br>
obce@PERMANENT<br>
obce_b@PERMANENT<br>
orp@PERMANENT<br>
zel_stan@PERMANENT<br>
zelez@PERMANENT<br>
<br>
but it's hardly parsable<br>
<br>
$ g.mlist rast,vect -m --q<br>
x@g6<br>
b@g6<br>
obce6@g6<br>
kltm50@PERMANENT<br>
lesy@PERMANENT<br>
merene_body@PERMANENT<br>
obce@PERMANENT<br>
obce_b@PERMANENT<br>
orp@PERMANENT<br>
zel_stan@PERMANENT<br>
zelez@PERMANENT<br>
<br>
so I was thinking to add a new flag which prints also element type<br>
<br>
rast x@g6<br>
vect b@g6<br>
vect obce6@g6<br>
vect kltm50@PERMANENT<br>
...<br>
<br>
(do we really need a new flag for that? There is probably nobody who<br>
is parsing multiple types from `g.mlist`. So probably element type<br>
could be automatically printed when mutiple types and `--q` flag are<br>
given (?) Maybe too tricky...<br>
<br>
The remaining question how to implement all mapsets search.<br>
<br>
mapset=.<br>
<br>
means search path<br>
<br>
1) do we introduce special character for all mapsets ? (preferable I would say)<br>
2) do we introduce new flag ?<br>
<br>
Thanks for your ideas in advance! Martin<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin Landa * <a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</font></span></blockquote></div><br></div>