Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to open geotiff using Java Advanced Imaging API (JAI)

User_8NGYOAug 24 2021

Dear Support team,
I am try to open a geotiff file using Java Advanced Imaging API. I am using following jars in my application : jai_codec-1.1.3.jar,jai_core-1.1.3.jar , jai_imageio-1.1.jar. Here is the sample program to open the geotiff file:
RenderedImage image = JAI.create("ImageRead", "D:\\GeoTIFF\\BigTIFF.tif");
Dimension dimension = new Dimension(image.getWidth(), image.getHeight());

It returns following error:
Exception in thread "main" java.lang.RuntimeException: - Unable to render RenderedOp for this operation.
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:827)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
I have attached the Tiff file too.
BigTIFF.zip (703 Bytes)Can you please help what is the issue in the tiff file?

Thanks,
Abhishek

Comments
Post Details
Added on Aug 24 2021
0 comments
359 views