MosaicIndexBuilder doesn't properly handle images having BogusColorSpace as
ComponentColorModel's ColorSpace
------------------------------------------------------------------------------------------------------------
Key: GEOT-2397
URL: http://jira.codehaus.org/browse/GEOT-2397
Project: GeoTools
Issue Type: Bug
Components: gc imagemosaic
Affects Versions: 2.5.4
Reporter: Daniele Romagnoli
Assignee: Daniele Romagnoli
Fix For: 2.5.5
MosaicIndexBuilder's checkColorModel method does the following check on the
images composing the mosaic:
if (defaultCM instanceof ComponentColorModel
&& actualCM instanceof ComponentColorModel) {
.....
final ComponentColorModel defCCM =
(ComponentColorModel) defaultCM, actualCCM = (ComponentColorModel) actualCM;
colorSpaceIsOk =
defCCM.getColorSpace().equals(actualCCM.getColorSpace());
.....
}
The "equals" method will return false when checking BogusColorSpaces which are
different instances.
Therefore, in case of BogusColorSpaces, we should check the colorspaces
properties are the same instead of calling the "equals" method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel