Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to GeoTools. I was trying the samples in
I am not able to run the ImageLab sample code. I know it would be some lack in understanding or a simple mistake.

I am getting the following exception:

Exception in thread "main" java.lang.UnsupportedOperationException: Trying to get a reader from an unknown format. at at org.geotools.demo.ImageLab.displayLayers( at org.geotools.demo.ImageLab.getLayersAndDisplay( at org.geotools.demo.ImageLab.main(

What actually needs to be done? Also, is it possible to use normal jpeg image or any other way around?

In the GeoTools website the mentioned bluemarble.tif is not available and I have been using normal jpg image.

In another website while seraching for more info on this, I read that it uses a world file. What is a world file and how it is related to this and how do I use it?

Please help, I have been stuck with this for a long time.

Thanks in advance.

share|improve this question
Sorry forgot to mention that i am not using maven, rather i am using java eclipse ganeymede. – namc Sep 11 '12 at 5:52
just to say that trying to do GeoTools development without maven is very hard and will probably fail. – iant Sep 12 '12 at 9:32

This error will occur if the image file path or name is wrong. Another possibility is that GeoTools is not properly installed.

share|improve this answer
thanks for the reply. it got solved. had missed few geotools jars like imageio-ext-* – namc Sep 12 '12 at 6:45
How did you import the jars in eclipse ? – Saryk Oct 16 '13 at 13:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.