[GRASS-dev] Default behavior of g.list displaying all mapsets content

Dear all,

currently the default behavior of g.list is to display all the files present in all mapsets (which corresponds to g.list mapset=*), without indicating where they are.
I would very much prefer g.list mapset=. as a default behavior, ignoring what there is in other mapsets.
If this is really not possible, at least specifying the mapset where the maps are, if different from the current.
Perhaps:

g.list vect
vect1
vect2
PERMANENT
vect3

or:

g.list vect
vect1
vect2
PERMANENT/vect3

What do you think?
Thanks

···

Margherita Di Leo

On 19/10/16 11:22, Margherita Di Leo wrote:

Dear all,

currently the default behavior of g.list is to display all the files
present in all mapsets (which corresponds to g.list mapset=*), without
indicating where they are.
I would very much prefer g.list mapset=. as a default behavior, ignoring
what there is in other mapsets.

-1

For me the current default behaviour, i.e. showing maps of all mapsets in the current search path is much more useful.

If this is really not possible, at least specifying the mapset where the
maps are, if different from the current.
Perhaps:

g.list vect
vect1
vect2
PERMANENT
vect3

or:

g.list vect
vect1
vect2
PERMANENT/vect3

What do you think?

Have you seen the '-m' flag ?

And otherwise, the '-p' flag gives you pretty printed output by mapset.

I guess we could discuss whether '-p' should be the default...

There was a discussion about these questions on the ML at the time: https://lists.osgeo.org/pipermail/grass-dev/2014-October/071381.html

Moritz

On Wed, Oct 19, 2016 at 11:47 AM, Moritz Lennert <
mlennert@club.worldonline.be> wrote:

On 19/10/16 11:22, Margherita Di Leo wrote:

Dear all,

currently the default behavior of g.list is to display all the files
present in all mapsets (which corresponds to g.list mapset=*), without
indicating where they are.
I would very much prefer g.list mapset=. as a default behavior, ignoring
what there is in other mapsets.

-1

For me the current default behaviour, i.e. showing maps of all mapsets in
the current search path is much more useful.

If this is really not possible, at least specifying the mapset where the

maps are, if different from the current.
Perhaps:

g.list vect
vect1
vect2
PERMANENT
vect3

or:

g.list vect
vect1
vect2
PERMANENT/vect3

What do you think?

Have you seen the '-m' flag ?

Yes, thanks.

And otherwise, the '-p' flag gives you pretty printed output by mapset.

I guess we could discuss whether '-p' should be the default...

Yes indeed it is the 'default behavior' what I'm referring to

There was a discussion about these questions on the ML at the time:
https://lists.osgeo.org/pipermail/grass-dev/2014-October/071381.html

I must have missed that, or perhaps I had no strong opinion at that time,
sorry about that.
The reasons I don't like the current behavior is that, on one side is not
much informative (the maps sitting in the current mapset are likely the
ones I want to access the names most often, for other maps I find it
intuitive to explicitly ask for), and on the other side if you happen to
have several maps in a couple of mapset you end up with an unreadable blob.

Thanks

--
Margherita Di Leo

On Wed, Oct 19, 2016 at 11:56 AM, Margherita Di Leo <diregola@gmail.com>
wrote:

On Wed, Oct 19, 2016 at 11:47 AM, Moritz Lennert <
mlennert@club.worldonline.be> wrote:

On 19/10/16 11:22, Margherita Di Leo wrote:

There was a discussion about these questions on the ML at the time:
https://lists.osgeo.org/pipermail/grass-dev/2014-October/071381.html

I must have missed that, or perhaps I had no strong opinion at that time,
sorry about that.

It seems to me that the whole thread ended up with a general agreement that
the -m should be reverted?

--
Margherita Di Leo

Hi,

sorry for bringing back this topic again,

···

On Wed, Oct 19, 2016 at 2:17 PM, Margherita Di Leo <diregola@gmail.com> wrote:

what about a -c flag that prints only maps in current mapset?

Regards,

On Wed, Oct 19, 2016 at 11:56 AM, Margherita Di Leo <diregola@gmail.com> wrote:

It seems to me that the whole thread ended up with a general agreement that the -m should be reverted?

On Wed, Oct 19, 2016 at 11:47 AM, Moritz Lennert <mlennert@club.worldonline.be> wrote:

On 19/10/16 11:22, Margherita Di Leo wrote:

There was a discussion about these questions on the ML at the time: https://lists.osgeo.org/pipermail/grass-dev/2014-October/071381.html

I must have missed that, or perhaps I had no strong opinion at that time, sorry about that.

Margherita Di Leo

Hi,

2016-11-02 11:51 GMT+01:00 Margherita Di Leo <diregola@gmail.com>:

what about a -c flag that prints only maps in current mapset?

g.list type=rast mapset=.

-1 for another flag since the user can list maps from current maps by
`mapset=.`. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 2 November 2016 at 12:07, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

Hi,

2016-11-02 11:51 GMT+01:00 Margherita Di Leo <diregola@gmail.com>:

what about a -c flag that prints only maps in current mapset?

g.list type=rast mapset=.

-1 for another flag since the user can list maps from current maps by
`mapset=.`. Ma

+1 for Martin suggestion

--
ciao
Luca

www.lucadelu.org