Martin,

g.mlist already has -t flag for printing element types.
rast/x@g6
vect/b@g6
vect/obce6@g6
vect/kltm50@PERMANENT

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)?

Curious why we need all mapsets search..

Huidae


On Sun, May 25, 2014 at 3:43 AM, Martin Landa <[email protected]>wrote:

> 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@g6
> vector map(s) available in mapset <g6>:
> b@g6
> obce6@g6
> vector map(s) available in mapset <PERMANENT>:
> kltm50@PERMANENT
> lesy@PERMANENT
> merene_body@PERMANENT
> obce@PERMANENT
> obce_b@PERMANENT
> orp@PERMANENT
> zel_stan@PERMANENT
> zelez@PERMANENT
>
> but it's hardly parsable
>
> $ g.mlist rast,vect -m --q
> x@g6
> b@g6
> obce6@g6
> kltm50@PERMANENT
> lesy@PERMANENT
> merene_body@PERMANENT
> obce@PERMANENT
> obce_b@PERMANENT
> orp@PERMANENT
> zel_stan@PERMANENT
> zelez@PERMANENT
>
> so I was thinking to add a new flag which prints also element type
>
> rast x@g6
> vect b@g6
> vect obce6@g6
> vect kltm50@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
> _______________________________________________
> grass-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to