Hello everybody,

 I’m developing a viewer and I’ve been stocked trying to add rasters in ECW 
format. I have already install all gdal libraries with the ecw plugin and setup 
the PATHs. To make sure their working I’ve run in cmd    gdalinfo —formats and 
it displays ECW as one of the supported formats.

I have the method 
addraster(File rasterFile) throws Exception {

        AbstractGridFormat format = GridFormatFinder.findFormat(rasterFile);
        GridCoverage2DReader readers = format.getReader(rasterFile);
        

        Style rasterStyle = createGreyscaleStyle(1);

        Layer rasterLayer = new GridReaderLayer(readers, rasterStyle);
        map.addLayer(rasterLayer);
        
         
       
        show();
    }

Wish seems to be working fine, it adds the layer to the list of layers but it 
don’t paint it.

Does anyone know what can I be doing wrong? a would appreciate some help





Ing. J Eduardo Palacio Reyna
Ingeniero en Sistemas y Tecnologías de la Información
juan.palaci...@udlap.mx
Teléfono: (044) 222 58 66 60 2



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to