Hi, for an export module I am thinking of writing the output format wants the raster image to be a paletted 4-bit integers. I'll write out the palette separately. (the output only has to be visual)
the shell script way of doing this would be to use r.out.gdal to TIFF to GIF via ImageMagick/convert or NetPBM tools -> TIFF again, but that's really clunky compared to if I can do it from libgis/librast using color functions. r.out.tiff's palette flag seems like a good model, but is there a way to set the max color levels to 127 automatically instead of just exiting with an error telling the user to adjust the input map? there is R_get_num_colors(), is there any R_set_num_colors() possible? thanks, Hamish _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
