All coverage formats using RasterLayerRequest break if the
destinationToSourceTransform is an affine transform
--------------------------------------------------------------------------------------------------------------
Key: GEOT-3704
URL: https://jira.codehaus.org/browse/GEOT-3704
Project: GeoTools
Issue Type: Bug
Reporter: Andrea Aime
Assignee: Daniele Romagnoli
This is happening because the code calls:
requestedGridToWorld.preConcatenate((AffineTransform)
destinationToSourceTransform);
However the requestedGridToWorld is a XAffineTransform on which the source
coverage is defined and it's marked as immutable, calling preConcatenate on it
will result in:
{code}
Caused by: java.lang.UnsupportedOperationException: This affine transform is
unmodifiable.
at
org.geotools.referencing.operation.matrix.XAffineTransform.checkPermission(XAffineTransform.java:88)
at
org.geotools.referencing.operation.transform.AffineTransform2D.checkPermission(AffineTransform2D.java:94)
at
org.geotools.referencing.operation.matrix.XAffineTransform.preConcatenate(XAffineTransform.java:225)
at
org.geotools.gce.imagemosaic.RasterLayerRequest.inspectCoordinateReferenceSystems(RasterLayerRequest.java:779)
at
org.geotools.gce.imagemosaic.RasterLayerRequest.computeRequestSpatialElements(RasterLayerRequest.java:969)
at
org.geotools.gce.imagemosaic.RasterLayerRequest.prepare(RasterLayerRequest.java:748)
at
org.geotools.gce.imagemosaic.RasterLayerRequest.<init>(RasterLayerRequest.java:241)
at
org.geotools.gce.imagemosaic.RasterManager.read(RasterManager.java:330)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:625)
{code}
I suggest the code to be modified so that requestedGridToWorld is built as a
AffineTransform copy of the coverage affine transform, this will allow the
pre-concatenation to work
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel