[GRASS-dev] new r.out.gdal fails to preserve 8bit color
Markus Neteler
neteler at itc.it
Sat Jan 20 10:41:19 EST 2007
On Fri, Jan 19, 2007 at 03:31:42PM +0000, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > > Why do you think that this is an issue with G_get_f_color_rule()?
> > >
> > Maybe that's a wrong assumption.
> >
> > > With a simple test program, I get results which exactly match the
> > > contents of the colr file.
> > >
> >
> > I tried on two machines. The exported file does not contains colors. I wonder
> > if you get a colored output file (did you try a Spearfish raster map?).
>
> I haven't looked into the overall issue of colour tables in r.out.gdal
> (I'm entirely unfamiliar with the GDAL API), only the question of
> whether G_get_f_color_rule() works correctly (it appears to).
Right, it writes reasonable values (in my debug output).
So GDALSetMetadataItem() probably fails or something else is
missing.
Sigh,
Markus
More information about the grass-dev
mailing list