I need a little explanation :) When you say:
> 2> > In your code you are providing the traight coverage to the map pane. > To gain access to decimation on reading and/or overviews you need to > provide the map pane with the reader directly not with the coverage. > The renderer wil then ask the reader to supply the best resolutio > navailable exploiting overviews/decimation Now I'm doing this: [...] AbstractGridCoverage2DReader reader; try { reader = new ImageMosaicReader(file, new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)); } catch (IOException ex) { ex.printStackTrace(); return; } crs = coverage.getCoordinateReferenceSystem(); StyleBuilder styleBuilder = new StyleBuilder(); ColorMap cm = styleBuilder.createColorMap( new String[]{"0", "255"}, new double[]{0, 255}, new Color[]{ new Color(0, 0, 0), new Color(255, 255, 255)}, ColorMap.TYPE_RAMP); // XXX: ? RasterSymbolizer rs = styleBuilder.createRasterSymbolizer(cm, 1); Style st = styleBuilder.createStyle(rs); mapContext = new DefaultMapContext(crs); mapContext.addLayer(reader, st); renderer.setContext(mapContext); [...] I don't understand when you say: > To gain access to decimation on reading and/or overviews you need to > provide the map pane with the reader directly not with the coverage. I thought than I was doing it already. Thanks! -- Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users