Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.7.5
-
Component/s: None
-
Labels:None
Description
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:
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)
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
Issue Links
- is depended upon by
-
GEOS-4675
WMS 1.3.0 may to handle CRS whose native order is NORTH/EAST (for raster formats that use RasterLayerRequest class)
-