Skip to main content

Question on imageio-ext

6 replies [Last post]
tranan
Offline
Joined: 2009-06-23

Hi i am currently trying to use imageio-ext to read in jp2 files. I ran into a snag and i have no idea why it is getting an error. This is the error i get when trying to use Kakadu reader. I do have a license for it.:

File file = new File("C:\\test\\N-11-30_loc.jp2");
GDALImageReader imageReader = (GDALImageReader) new JP2GDALKakaduImageReaderSpi().createReaderInstance();
imageReader.setInput(file);

the error i get when doing that is this:
Exception in thread "main" java.lang.RuntimeException: The Provided input is not supported by this reader
at it.geosolutions.imageio.gdalframework.GDALImageReader.setInput(GDALImageReader.java:816)
at javax.imageio.ImageReader.setInput(ImageReader.java:363)
at Test.main(Test.java:17)

If i replace kakadu with mrsid it works. Can you guys tell me what am i doing wrong?
Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nico4486
Offline
Joined: 2010-05-17

Did you find a way for decoding jpeg 2000 with kakadu in java?

Simone Giannecchini

Ciao,
sorry for the late response.
I am not sure I understand what you mean, but in ImageIO-ext there is
a plugin for decoding jpeg2000 files based on Kakadu, which should
work just fine, providing you have a kakadu license at hand.

Regards,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

-------------------------------------------------------

On Mon, May 17, 2010 at 2:18 PM, wrote:
> Did you find a way for decoding jpeg 2000 with kakadu in java?
> [Message sent by forum member 'nico4486']
>
> http://forums.java.net/jive/thread.jspa?messageID=470141
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Ken Warner

I've used ImageIO Tools for JAI to decode jpeg2000 images.
Works just fine. I guess you might need a license to encode
but not for decode.

Simone Giannecchini wrote:
> Ciao,
> sorry for the late response.
> I am not sure I understand what you mean, but in ImageIO-ext there is
> a plugin for decoding jpeg2000 files based on Kakadu, which should
> work just fine, providing you have a kakadu license at hand.
>
> Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Daniele Romagnoli

Hi,
I suggest to you to post imageio-ext related question to the specific
imageio-ext mailing list.
Anyway, can you provide me more details on your system?
Which native libraries are you using?
Within the download section of our imageio-ext site, we don't distribute the
native libraries containing support for Kakadu, being license protected.
Did you built your GDAL native libraries set, supporting kakadu? (Otherwise,
the JP2GDALKakaduImageReader won't work).
If you need guidance in building GDAL to support kakadu, please refer to the
setup guide available at [1].
In case you encounter any problem in doing this, let me know.

Regards,
Daniele

[1]:
https://imageio-ext.dev.java.net/files/documents/7505/124115/ImageioExt-...
or
https://imageio-ext.dev.java.net/files/documents/7505/124114/ImageioExt-...

On Thu, Jun 25, 2009 at 8:47 PM, wrote:

> Hi i am currently trying to use imageio-ext to read in jp2 files. I ran
> into a snag and i have no idea why it is getting an error. This is the
> error i get when trying to use Kakadu reader. I do have a license for it.:
>
> File file = new File("C:\\test\\N-11-30_loc.jp2");
> GDALImageReader imageReader = (GDALImageReader) new
> JP2GDALKakaduImageReaderSpi().createReaderInstance();
> imageReader.setInput(file);
>
> the error i get when doing that is this:
> Exception in thread "main" java.lang.RuntimeException: The Provided input
> is not supported by this reader
> at
> it.geosolutions.imageio.gdalframework.GDALImageReader.setInput(GDALImageReader.java:816)
> at javax.imageio.ImageReader.setInput(ImageReader.java:363)
> at Test.main(Test.java:17)
>
>
> If i replace kakadu with mrsid it works. Can you guys tell me what am i
> doing wrong?
> Thanks.
> [Message sent by forum member 'tranan' (tranan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=352998
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it

-------------------------------------------------------
[att1.html]

tranan
Offline
Joined: 2009-06-23

what i did was i downloaded the distrubited version that is in the download section and i added the kakadu dll to it. I thought that would be enough to get support of kakadu.

Would I have to build the entire project from the setup guide to get support for kakadu?

Simone Giannecchini

Ciao,
there is no plugin system available (yet) for kakadu, therefore you
need to build gdal for it if you want to be able to use it as a gdal
format.

However, if your goal is just to use kakadu directly, we also have a
plugin that read and write jp2k data without passing via gdal.
It has not been released officially yet, but it is pretty much ready.
If you want to test a snapshot you can find it in this maven
repository:

http://repo.opengeo.org/

here is the pom for maven:

http://repo.opengeo.org/it/geosolutions/imageio-ext/imageio-ext-kakadu/1...

If you are unable to use maven to grab dependencies, I can package the
needed jars up for you and send them over.
Once you get them it a point of putting the relevant dll (or so) in
the path (make sure to build the jni bindings as well!).

Anyway, we should release a new version of imageio-ext, the 1.0.3,
with support for kakadu shortly, probably next week.

Feel free to ping me with more questions.
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Fri, Jun 26, 2009 at 4:45 PM, wrote:
> what i did was i downloaded the distrubited version that is in the download section and i added the kakadu dll to it.  I thought that would be enough to get support of kakadu.
>
> Would I have to build the entire project from the setup guide to get support for kakadu?
> [Message sent by forum member 'tranan' (tranan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353169
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net