[geotk] [JIRA] Created: (GEOTK-100) Needs more control on the
conversion performed by SpatialImageReader
Martin Desruisseaux (JIRA)
jira at geomatys.com
Wed May 19 07:08:01 EDT 2010
Needs more control on the conversion performed by SpatialImageReader
--------------------------------------------------------------------
Key: GEOTK-100
URL: http://jira.geotoolkit.org/browse/GEOTK-100
Project: Geotoolkit
Issue Type: Improvement
Components: Coverage
Affects Versions: 3.11
Reporter: Martin Desruisseaux
Assignee: Martin Desruisseaux
Fix For: 3.12
{{SpatialImageReader}} (a {{javax.imageio.ImageReader}} specialization) performs some conversions of sample values during the reading process:
* Negative integer values may be shifted to a positive range of values.
* Fill values may be replaced by NaN values.
We need to provide more control on the conversions that can be applied. By default, {{SpatialImageReader}} should avoid any conversions not strictly necessary, including the conversion of fill values. The later should be allowed only if the following method is explicitly invoked:
{code:java}
SpatialImageReadParam.setSampleConversionAllowed(SampleConversionType.REPLACE_FILL_VALUES, true);
{code}
{{REPLACE_FILL_VALUES}} needs to be added in the list of enum currently declared in {{SampleConversionType}}. It may be worth to add an {{STORE_AS_FLOATS}} enum as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Geotoolkit
mailing list