On 9/14/2020 9:27, michael michaud wrote:
> Thanks for this fix ede. I could read successfully images with native open 
> jpeg and ecw and I agree that we should use openjpeg first.

just packaged the latest greatest GDAl and et voila ;)

>With ImageIO JPEG 2000 Image Reader, I still get an image with a very bad 
>resolution and compressed version takes hours to load/uncompress.

maybe we should simply not offer it? on the other hand, it's an option. as a 
user i like options, especially when they are not hidden from me :)

> Don't know if you tried this version :
> https://github.com/jai-imageio/jai-imageio-jpeg2000

just tried, stack is below. the readme on 
https://github.com/jai-imageio/jai-imageio-jpeg2000/ also suggest to not to use 
it. we should probably heed their advice.

> Maybe we can close this ticket and open a FR for a MEGA distro including 
> GDAL. Also IMHO, the java jp2 reader still have a problem but I can open a 
> more specific ticket for OJ_FUTURE.

sure, let's wait for Jukka's reply though.. ede



[TRACE] 10:11:08.760 All factories fail for the operation "ImageRead" at 
com.vividsolutions.jump.workbench.imagery.geoimg.GeoRaster.fetchRaster(GeoRaster.java:221)
javax.media.jai.util.ImagingException: All factories fail for the operation 
"ImageRead"
        at 
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1687)
        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:211)
SNIP
        at 
com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.createImageFeature(ReferencedImageFactoryFileLayerLoader.java:213)
        at 
com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.open(ReferencedImageFactoryFileLayerLoader.java:106)
        at 
org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:164)
        at 
org.openjump.core.ui.plugin.file.OpenWizardPlugIn.run(OpenWizardPlugIn.java:110)
        at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
        at 
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
        ... 19 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: 
jj2000.j2k.fileformat.reader.FileFormatReader.<init>(Ljj2000/j2k/io/RandomAccessIO;Lcom/github/jaiimageio/jpeg2000/impl/J2KMetadata;)V
        at 
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:317)
        ... 25 more
Caused by: java.lang.RuntimeException: 
jj2000.j2k.fileformat.reader.FileFormatReader.<init>(Ljj2000/j2k/io/RandomAccessIO;Lcom/github/jaiimageio/jpeg2000/impl/J2KMetadata;)V
        at 
com.github.jaiimageio.jpeg2000.impl.J2KReadState.initializeRead(J2KReadState.java:682)
        at 
com.github.jaiimageio.jpeg2000.impl.J2KReadState.<init>(J2KReadState.java:195)
        at 
com.github.jaiimageio.jpeg2000.impl.J2KImageReader.readHeader(J2KImageReader.java:370)
        at 
com.github.jaiimageio.jpeg2000.impl.J2KImageReader.getImageTypes(J2KImageReader.java:384)
        at javax.imageio.ImageReader.getRawImageType(ImageReader.java:681)
        at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.layoutHelper(ImageReadOpImage.java:228)
        at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.<init>(ImageReadOpImage.java:473)
        at 
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:309)
        ... 25 more
Caused by: java.lang.NoSuchMethodError: 
jj2000.j2k.fileformat.reader.FileFormatReader.<init>(Ljj2000/j2k/io/RandomAccessIO;Lcom/github/jaiimageio/jpeg2000/impl/J2KMetadata;)V
        at 
com.github.jaiimageio.jpeg2000.impl.J2KReadState.initializeRead(J2KReadState.java:403)
        ... 32 more


---

** [bugs:#430] JP2 reader does not read all jp2 files**

**Status:** open
**Milestone:** OJ_2.x
**Created:** Sat Oct 01, 2016 09:56 AM UTC by michael michaud
**Last Updated:** Mon Sep 14, 2020 07:27 AM UTC
**Owner:** nobody


Orthophotographies produced by IGN are not read correctly (see maling list on 
2016-10-01).
One is read with a very bad resolution, anotherone freeze the application and 
does not load. 


---

Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/jump-pilot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/jump-pilot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to