Gary Jackson a écrit : > Is there a way to get fill value/no data value metadata and similar items > from a GridCoverage2D object? I know that this is not always available, but > it'd be nice to get when it is.
If the GridCoverage2D has been constructed with SampleDimensions (I don't know if our readers are doing that...) you should have this information. Get the GridSampleDimension for the band of interest: http://javadoc.geotools.fr/snapshot/org/geotools/coverage/grid/GridCoverage2D.html#getSampleDimension(int) Then you may invoke "getNoDataValues()" on the returned object. Alternatively you can invoke "getCategoryNames()" and looks if a name looks like "no data". For more sophesticated users, you can invoke getCategories() and inspect the Category elements (provide more informations like the relationship with geophysics values, colors, etc). 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-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
