Adit Santokhee a écrit :
> I am doing a simple test. I am extracting data from a netcdf file using
> netcdf libraries and then I am trying to create a GridCoverage2D object with
> the data using the geotools api. I want to know exactly what are the limits
> of GridCoverage in geotools and how much I can use it. 

It is hard to answer without more details about what you would like to do... 
Some limits of GridCoverage in Geotools are: can not bring world peace, it 
doesn't make coffee in the moorning, etc...

There is GridCoverage2D which is basically a wrapper around RenderedImage from 
Java API - work in theory for every primitive types including floating points, 
but some are more tricky than other ('double' is more difficult than 'float'; 
'short' is more difficult than 'unsigned short' - but still possible). There is 
GridCoverageStack which is one way (some could imagine other) to build a N-D 
coverage from a list of 2D coverages.



> I would like to know if anyone has done this already and what were your
> experiences.

We read 4D NetCDF and put 2D slices in GridCoverage2D instances. Some 
complication arise from the fact that NetCDF files doesn't have color palette, 
but there is some support classes in GeoTools trying to be of some help. 
However 
there is still significant amount of code needed on user side for bringing the 
piece togethers. This work should be done later when we will have a redesigned 
CoverageReader, but we are not yet there. For now some users need to work with 
Image I/O on one side, GridCoverage2D on the other side, with a gap between the 
two.

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to