[GRASS-dev] g.mlist list multiple types from all mapsets
Martin Landa
landa.martin at gmail.com
Sun May 25 00:43:15 PDT 2014
Hi all,
I would like to modify `g.mlist` to enable listing multiple types from
all mapsets in the given location. Now you can list multiple types
from search path, ie.
$ g.mlist rast,vect -m
raster map(s) available in mapset <g6>:
x at g6
vector map(s) available in mapset <g6>:
b at g6
obce6 at g6
vector map(s) available in mapset <PERMANENT>:
kltm50 at PERMANENT
lesy at PERMANENT
merene_body at PERMANENT
obce at PERMANENT
obce_b at PERMANENT
orp at PERMANENT
zel_stan at PERMANENT
zelez at PERMANENT
but it's hardly parsable
$ g.mlist rast,vect -m --q
x at g6
b at g6
obce6 at g6
kltm50 at PERMANENT
lesy at PERMANENT
merene_body at PERMANENT
obce at PERMANENT
obce_b at PERMANENT
orp at PERMANENT
zel_stan at PERMANENT
zelez at PERMANENT
so I was thinking to add a new flag which prints also element type
rast x at g6
vect b at g6
vect obce6 at g6
vect kltm50 at PERMANENT
...
(do we really need a new flag for that? There is probably nobody who
is parsing multiple types from `g.mlist`. So probably element type
could be automatically printed when mutiple types and `--q` flag are
given (?) Maybe too tricky...
The remaining question how to implement all mapsets search.
mapset=.
means search path
1) do we introduce special character for all mapsets ? (preferable I would say)
2) do we introduce new flag ?
Thanks for your ideas in advance! Martin
--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
More information about the grass-dev
mailing list