Hello,

I have some trouble to render my rasters : the raster is very dark, and we
can't see the relief.
I know today, the support is bad for rasters in the renderer, but if I
uunderstood what simboss told me, there is anyway a basic support.

I tried to do this :

Style style = null;

String[] labels = new String[]{"-67890","0","2550"};
double[] quantities = new double[]{-67890,0,2550};
Color[] colors = new Color[]{Color.BLUE, Color.CYAN, Color.GREEN};
int type = ColorMap.TYPE_RAMP;

StyleBuilder sb = new StyleBuilder();

ColorMap cm = sb.createColorMap(labels, quantities, colors, type);
RasterSymbolizer rs = sb.createRasterSymbolizer();//cm, 1
style = sb.createStyle(rs);

MapLayer temp = new
DefaultMapLayer(patchCoverages(directoryContainingGeoTIFF),
rasterStyle());    // patchCoverages() return a MosaicImageReader
temp.setTitle("mosaic test");
context.addLayer(temp);

I think it is really basic, but even this does not work.
Somebody could explain me what exactly we are able to have today for raster
rendering ?

Thanks,
Thomas
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to