[GRASS-dev] rename d.legend

Hi all,

I would suggest to rename `d.legend` in G7 to `d.rast.legend`. I hope
that we will have soon a module which allows to display also legend
for vectors. Than we could easily add a new module `d.vect.legend`.
What do you think?

Martin

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

On 07/11/14 14:36, Martin Landa wrote:

Hi all,

I would suggest to rename `d.legend` in G7 to `d.rast.legend`. I hope
that we will have soon a module which allows to display also legend
for vectors. Than we could easily add a new module `d.vect.legend`.
What do you think?

+1
Moritz

On Fri, Nov 7, 2014 at 8:36 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi all,

I would suggest to rename `d.legend` in G7 to `d.rast.legend`. I hope
that we will have soon a module which allows to display also legend
for vectors. Than we could easily add a new module `d.vect.legend`.
What do you think?

We should consider that one often needs to display both legends (for
multiple vectors and one or more rasters), so then you want them to show as
one. This may lead to `d.rast.legend` and `d.vect.legend` and `d.legend`
which may encapsulate them.

I think Hamish was saying something about having just one module for both
since there would be a lot of similarities but I might be wrong. Perhaps
sharing the code using a library is more appropriate considering also
ps.map where you have vector and raster legends.

Note that `d.legend` supports also 3D raster, not only 2D, so it already
supports two different map types. However, overlap of parameters is 100% in
this case.

Vaclav

http://trac.osgeo.org/grass/ticket/2083

Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.eu/mentors/landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,

2014-11-07 15:30 GMT+01:00 Vaclav Petras <wenzeslaus@gmail.com>:

We should consider that one often needs to display both legends (for
multiple vectors and one or more rasters), so then you want them to show as
one. This may lead to `d.rast.legend` and `d.vect.legend` and `d.legend`
which may encapsulate them.

hm, it also make sense to me. Martin

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