From: Jody G. <jod...@gm...> - 2011-10-30 01:53:43
|
> 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); > return SLD.wrapSymbolizers(sym); > > I do not know it it is good way, but it is working. Please improve that sample on web for future generations of coders... So I have considered making the above change; while it may make sense for your application or dataset it does not help the tutorial (which is trying to show how colour bands and styles work). What I will do is take the text warning people to make their own styles into a seperate step in the hopes people read it; and expand on the discussion of the different formats later on in the document. Cheers, Jody |