[GRASS-dev] G_exp_colors()?

Glynn Clements glynn at gclements.plus.com
Tue Apr 8 13:12:48 EDT 2008


Hamish wrote:

> the problem is the data
> is 90% done by 0.4, but the colr/ rules are only written out on integer
> values

Ah. Does the attached patch fix the problem?

-- 
Glynn Clements <glynn at gclements.plus.com>

-------------- next part --------------
Index: lib/gis/color_xform.c
===================================================================
--- lib/gis/color_xform.c	(revision 30880)
+++ lib/gis/color_xform.c	(working copy)
@@ -165,7 +165,7 @@
 	x = exp(lx);
 
 	if (i > 0)
-	    G_add_color_rule(prev, red, grn, blu, x, red2, grn2, blu2, dst);
+	    G_add_d_raster_color_rule(&prev, red, grn, blu, &x, red2, grn2, blu2, dst);
 
 	prev = x;
 


More information about the grass-dev mailing list