hmm, we switched from jai-imageio to imageio-ext before but i can't find a
reasoning beyond
"
readded old ImageIO-Ext tif driver in the hope to stabilize sextante raster
layer loading
"
https://github.com/openjump-gis/openjump/commit/a3fabc931894bffd20a0ee126db4d1e742a9460a
can you test the jai-imageio TIF reader against more files of you test set
please before we make that change permanent again.
..ede
On 9/15/2025 6:16 PM, Giuseppe Aruta wrote:
In the org.openjump.core.rasterimage.TiffUtilsV2 class,
if I substitute:
private static GeoReferencedRaster getGeoReferencedRaster(File tiffFile) throws
IOException {
......
try {
geoRaster = new GeoReferencedRaster(tiffFile.toString(),
new it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi());
// new com.github.jaiimageio.impl.plugins.tiff.TIFFImageReaderSpi());
......
return geoRaster;
}
with
private static GeoReferencedRaster getGeoReferencedRaster(File tiffFile) throws
IOException {
......
try {
geoRaster = new GeoReferencedRaster(tiffFile.toString(),
// new it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi());
new com.github.jaiimageio.impl.plugins.tiff.TIFFImageReaderSpi());
......
return geoRaster;
}
It seems to work fine
Il giorno lun 15 set 2025 alle ore 18:06 Giuseppe Aruta <[email protected]
<mailto:[email protected]>> ha scritto:
Hi Ede, I have the following error when I try to open a GeoTIFF with a
single band with Sextante: [ERROR] 17:57:47.828
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at
javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
at
com.vividsolutions.jump.workbench.imagery.geoimg.GeoRaster.fetchRaster(GeoRaster.java:222)
at
com.vividsolutions.jump.workbench.imagery.geoimg.GeoRaster.readRasterfile(GeoRaster.java:262)
at
com.vividsolutions.jump.workbench.imagery.geoimg.GeoReferencedRaster.readRasterfile(GeoReferencedRaster.java:350)
at
com.vividsolutions.jump.workbench.imagery.geoimg.GeoReferencedRaster.<init>(GeoReferencedRaster.java:140)
at
org.openjump.core.rasterimage.TiffUtilsV2.getGeoReferencedRaster(TiffUtilsV2.java:75)
at
org.openjump.core.rasterimage.TiffUtilsV2.getRenderedOp(TiffUtilsV2.java:50)
Il giorno sab 13 set 2025 alle ore 18:34 edgar.soldin--- via Jump-pilot-devel
<[email protected]
<mailto:[email protected]>> ha scritto:
hey Peppe,
i wasn't sure anymore so i upgraded the tiff codec we pinned to an old version
long time ago to make Sextante load single band rasters properly. can you please check
the latest snapshot "d189c72" for any issues?
thanks.. ede
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
<https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel