[ 
https://jira.codehaus.org/browse/GEOT-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Aime reopened GEOT-3704:
-------------------------------


It seems there are still issues, please have a look at the new patch

> 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: Simone Giannecchini
>             Fix For: 2.7.3, 8.0-M2
>
>         Attachments: GEOT3704-1.patch, GEOT3704-1.test.zip, geot-3704.patch
>
>
> 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

        

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to