I had the code open today and found this ...
    public boolean canRender( IRenderContext context ) {
        if( context instanceof ICompositeRenderContext ){
            return false;
        }
        IGeoResource geoResource = context.getGeoResource();
        if( geoResource.canResolve(AbstractGridCoverage2DReader.class) ){
            return true;
        }
        return false;
    }
Looks to be AbstractGridCoverage2DReader is the class we want; note that the GeoTools library does not have a good offical data access API available for reading raster yet. The generic interface GridCoverageReader is limited or something.

Jody

Nicolás Badano wrote:
Jody, thanks for your response.
I'm new to uDig, so please mind my ignorance.
How do I check the exact class the renderer uses?

thanks
Nico

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to