0

I want to read MapInfo files using Java.
Before I used geotools for this but now I have problems with the GDAL library in Win7x64. Can i find geotools or gdal only for Java? To it not usede gdal's dlls only Java classes. I found the MITAB library but its only for C++.
Does anyone know something that can help me?

UPADTE

Another question: i read geotools quickstart and dont se any words about Gdal. But when i try use geotools i get error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/gdal/ogr/ogr
at org.geotools.data.ogr.OGRDataStore.<clinit>(OGRDataStore.java:169)

When i add gdal.jre in build path all works fine.
Whats wrong?

1
  • 1
    It might be best to ask your question in another thread to conform with the SE format.
    – R.K.
    Dec 21, 2012 at 10:26

1 Answer 1

0

I think you could use the experimental OGR plugin to do this in GeoTools.

Try adding

<dependency>
  <groupId>org.geotools</groupId>
  <artifactId>gt-ogr</artifactId>
  <version>${geotools.version}</version>
</dependency>

to your pom.xml - I've not tried but I expect it will pull down all the stuff you need.

4
  • Its posible to use only Eclipse without maven?
    – Kliver Max
    Dec 21, 2012 at 10:06
  • It's really not recommended, maven makes life easy for you!
    – Ian Turton
    Dec 21, 2012 at 10:38
  • can you say i get gdal for Win 64bit from there vbkto.dyndns.org:1280/sdk/… . Its correct?
    – Kliver Max
    Dec 24, 2012 at 9:26
  • only if you have a 64bit Java install.
    – Ian Turton
    Dec 24, 2012 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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