Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
1  
It might be best to ask your question in another thread to conform with the SE format. –  R.K. Dec 21 '12 at 10:26
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
    
Its posible to use only Eclipse without maven? –  Kliver Max Dec 21 '12 at 10:06
    
It's really not recommended, maven makes life easy for you! –  iant Dec 21 '12 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 '12 at 9:26
    
only if you have a 64bit Java install. –  iant Dec 24 '12 at 9:59
add comment

Your Answer

 
discard

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.