Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] How to pick up Coverage from Layer

Hi all,

I'm working on GSoC project (The 'transofrmations' one) and I'm having following problem:
 
I would like to pick up the GridCoverage2D from layer containing image file (.tif). My 
approach is simmilar as with Feature layer. Code looks like this:

GridCoverage2D coverage  = (GridCoverage2D)sourceLayer.getResource(Coverage.class, null);

It works, but it looks that the coverage is resized by the transformation included in .wld file. 
Please does anybody know if there is a way how to get GridCoverage2D in original?

Sorry if this has been already discussed. 
I' working against uDig trunk (btw. - the raster rendering performance rise pretty nice there and 
also old Ubuntu/SWT bugs are gone. Cool :-) ).

Thanks for your help,

Bests,
Jan.



Back to the top