Re: [Geotools-devel] GridCoverage2D serialization

2021-01-06 Thread Andrea Aime
Hi Lorenzo, it's because GeoTiffReader returns a deferred loading image, that is not really read in memory, but has a connection to the source file and reads tiles on demand. The ability to serializing a GridCoverage2D really depends on how serializable the RenderedImage inside of it is. In genera

[Geotools-devel] GridCoverage2D serialization

2021-01-06 Thread Lorenzo Di Giacomo
Hi, i was trying to serialize a GridCoverage2D (read from file using GeoTiffReader) with the same snippet used in "GridCoverageTestBase.java", but when i try to do it i always get "java.lang.RuntimeException: it.geosolutions.imageio.stream.input.FileImageInputStreamExtImplNon-serializable parameter