Matthew, For the record, I just commited yesterday in GDAL SVN trunk a substantial update to the java bindings I was mentionning. Now all necessary typemaps have been created, so it looks rather good (no more SWIGTYPE_p_* classes). I would be interested in having early feedback from people already using the Java bindings to check if I haven't broken existing API. It shouldn't hopefully (at least the 2 test applications still run against the bindings). It also adds methods with default argument values, for example ogr.Open(String filename) in addition to the full ogr.Open(String filename, int update). Some facilities that look more java'ish have been added, like String Geometry.ExportToWkt(), in addition to the existing int Geometry.ExportToWkt(String[] argout), etc. A previous commit already added support for progress callbacks in GDAL API.
Best regards Le Wednesday 11 February 2009 17:10:53 Matthew Cole, vous avez écrit : > Thanks Evan. It turned out the problem had to do with including HDF4 and > HDF5 support. Once I removed those the binding worked. > > I had used the instructions at > http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions and will > update them for the newer program versions. > > Matt > > Even Rouault wrote: > > Yes, I've managed to build them, but with Linux. Have you verified that > > the > > gdal.jar is generated and at the right place ? > > There are instructions here : > > http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions > > > > It would be great if you could update the wiki page in case something has > > really change in the build process since that page was written. > > > > You should also be warned that due to missing SWIG typemaps, quite a few > > methods in 1.6 bindings have wrong signature, which will hopefully be > > fixed > > in the future in 1.7dev once I've commited the code. > > > > Le Monday 09 February 2009 22:48:11 Matthew Cole, vous avez écrit : > >> I've created java bindings for GDAL 1.6 in Windows and it seemed to work > >> but I'm getting linker errors whenever I try to access any gdal > >> functions. > >> > >> java.lang.UnsatisfiedLinkError: > >> C:\build182\gdal-1.6.0\swig\java\apps\gdaljni.dl > >> l: Can't find dependent libraries > >> Exception in thread "main" java.lang.UnsatisfiedLinkError: > >> org.gdal.gdal.gdalJNI.AllRegister()V > >> at org.gdal.gdal.gdalJNI.AllRegister(Native Method) > >> at org.gdal.gdal.gdal.AllRegister(gdal.java:255) > >> at R2gcpinfo.R2ExtractFootprint(R2gcpinfo.java:100) > >> at R2gcpinfo.main(R2gcpinfo.java:78) > >> > >> I've got it working for version 1.4, with the dlls in the same places, > >> so I'm not sure what the problem is. II don't think the java binding > >> are officially supported for 1.6 but has anyone gottem them working? > >> > >> Thanks for your help, > >> Matt > > > > _______________________________________________ > > gdal-dev mailing list > > gdal-dev@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev