It would be nice if d.legend could look for "map=-" and if so take legend cat and color info from stdin. That way vector maps and custom legends could be made without resorting to tricks like making a dummy raster file to hold
that info. [see v.colors addon script]
If data is fed from stdin (signaled by map=-) create categorical legend
using that data. Data format: "cat|label|color"
Reported by hamish on 11 Mar 2008 12:06 UTC this was code wish # 391 over on the old gforge tracker. moving it here. http://wald.intevation.org/tracker/index.php?func=detail&aid=391&group_id=21&atid=188
Hamish
Hi,
It would be nice if d.legend could look for "map=-" and if so take legend cat and color info from stdin. That way vector maps and custom legends could be made without resorting to tricks like making a dummy raster file to hold that info. [see v.colors addon script]
If data is fed from stdin (signaled by map=-) create categorical legend using that data. Data format: "cat|label|color"
e.g.
In this way d.legend could work as a system module by the GUI instead of a user module, and be useful for non-raster tasks too.
see expanded thread on the -dev mailing list: http://thread.gmane.org/gmane.comp.gis.grass.devel/19852/focus=19952
Hamish
Migrated-From: https://trac.osgeo.org/grass/ticket/89