| In geotools 14.<latest> (built from the 14.x branch) Im'm seeing the following exception when using PGRaster: Exception in thread "Thread-35" java.lang.ClassCastException: java.awt.image.Raster cannot be cast to java.awt.image.WritableRaster at org.geotools.gce.imagemosaic.jdbc.AbstractThread.rescaleImageViaPlanarImage(AbstractThread.java:108) at org.geotools.gce.imagemosaic.jdbc.ImageComposerThread.run(ImageComposerThread.java:170) I don't know if it still happens in later versions, but I don't think the relevant code has changed much. |