> I have lost best time of my life (oki, just a few hours) while replacing
> "return null" with this:
>
> // Now we create a RasterSymbolizer using colormap
> ColorMap colorMap;
> colorMap = sf.createColorMap();
> RasterSymbolizer sym = sf.getDefaultRasterSymbolizer();
> sym.setColorMap(colorMap)
I write a fair bit of the documentation; but it is a collaborate effort based
on email such as yours.
However the code example is correct for the tutorial; it was intended to only
be used for RGB images (and not things like DEMs).
--
Jody Garnett
On Saturday, 29 October 2011 at 3:09 AM, Lu
That is quite a rude message. You will not get much help from people
on this list if you make posts like that.
Michael
On 29 October 2011 04:09, LuVar wrote:
> Hi, in middle of
> http://docs.geotools.org/latest/userguide/tutorial/raster/image.html page
> there is some code which is nice, but
Hi, in middle of
http://docs.geotools.org/latest/userguide/tutorial/raster/image.html page there
is some code which is nice, but do not tell me who wrote it and where he live...
have look at it:
// We need at least three bands to create an RGB style
int numBands = cov.getNumSamp