As part of the contract with IFREMER, I have done some extensive work on the
unsupported/coverageio module. The work is still in progress and consist in this
package:

http://javadoc.geotools.fr/snapshot/org/geotools/image/io/package-summary.html

More specifically on the GeographicImageReader abstract class. The later is a
subclass of javax.imageio.ImageReader (a standard J2SE class) and is proposed as
the base class of any implementation of ImageReader for "real world" data
(oceanographic, wheater, digital elevation model, etc.). ImageReader
implementors are not required to extend this class; it is just an attempt to
make implementor life easier.

Two methods got special attention in an attempt to perform automatically the
hard stuff about instantiating SampleModel / ColorModel appropriate for the
data, while providing information about the minimal set of conversions required
in order to fit the data into the constraints of the selected ColorModel. I
tried to write extensive javadoc:

http://javadoc.geotools.fr/snapshot/org/geotools/image/io/GeographicImageReader.html#getRawDataType(int)
together with the getRawImageType(...) method just above.


The rules documented in the javadoc may seem complicated and arbitrary, but
actually I really made my best effort in order to get procedures as
straightforward as possible (and with a minimal amount of data conversions) from
arbitrary data type (signed integers, unsigned integers, float...) to a type
supported by a ColorModel. Current implementation contains only one arbitrary
threshold value; I will try to see later how I can get ride of this arbitrary 
value.

One important aspect is to agree on a standard GeographicMetadataFormat, as
mentioned in previous emails. GeographicMetadataFormat is crucial to the
implementation of the above-mentioned getRawImageType(...) method. Simone sent a
document proposing one such format last week. Simone, would you agree to make
this document plublicly available as an attachment in a JIRA task for 
discussion?

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to