[GRASS-dev] Rast_add_d_colour

Yann Chemin ychemin at gmail.com
Sat Dec 6 09:48:43 PST 2014


Hi,

I am working on beautifying the output of i.theilsen, a new addon.

For some reason, I cannot apply a grayscale palette.
---------------
Rast_init_colors(&colors);
DCELL val1 = ts_min;
DCELL val2 = ceil(ts_max);
Rast_add_d_color_rule(&val1, 0, 0, 0, &val2, 255, 255, 255, &colors);
---------------

ts_min, ts_max are known from the data processed,
val1 and val2 are declared as DCELL instead of const DCELL as required,
but if I declare const DCELL val1, then I cannot write stats to it for
palette definition...

What I am doing wrong?
Yann
-- 
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20141206/b3a43392/attachment.html>


More information about the grass-dev mailing list