[GRASS-SVN] r44065 - grass-addons/postscript/ps.output
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 28 03:29:17 EDT 2010
Author: ejtizado
Date: 2010-10-28 00:29:17 -0700 (Thu, 28 Oct 2010)
New Revision: 44065
Modified:
grass-addons/postscript/ps.output/ps3_map.c
grass-addons/postscript/ps.output/r_draw.c
Log:
added: draw legend
Modified: grass-addons/postscript/ps.output/ps3_map.c
===================================================================
--- grass-addons/postscript/ps.output/ps3_map.c 2010-10-28 07:20:54 UTC (rev 44064)
+++ grass-addons/postscript/ps.output/ps3_map.c 2010-10-28 07:29:17 UTC (rev 44065)
@@ -219,6 +219,16 @@
set_vector(UNMASKED, POINTS);
set_vector(UNMASKED, LABELS);
}
+ /* CLIPED CUSTOM DRAWS ONTO ALL MAP ITEMS */
+ if (PS.n_draws > 0)
+ {
+ /* fprintf(PS.fp, "0 0 0 C "); /* default color */
+ for (i = 0; i < PS.n_draws; i++)
+ {
+ if (PS.draw.flag[i] == 3)
+ set_draw(PS.draw.key[i], PS.draw.data[i]);
+ }
+ }
/* no more work in the map area */
/********************************/
Modified: grass-addons/postscript/ps.output/r_draw.c
===================================================================
--- grass-addons/postscript/ps.output/r_draw.c 2010-10-28 07:20:54 UTC (rev 44064)
+++ grass-addons/postscript/ps.output/r_draw.c 2010-10-28 07:29:17 UTC (rev 44065)
@@ -29,8 +29,12 @@
if (strcmp(name, "free") == 0)
type = 1;
+ else
if (strcmp(name, "paper") == 0)
- type = 2;
+ type = 2;
+ else
+ if (strcmp(name, "legend") == 0)
+ type = 3;
/* process options */
while (input(2, buf))
More information about the grass-commit
mailing list