Wanted to CC the list in the first place as it might be of general interest...
Le Monday 09 March 2009 19:53:35, vous avez écrit : > Paul, > > Frank has already almost said everything ;-) > > You need to be able to build (or get): > - GDAL/OGR with OGDI support > - the Java bindings by folllowing the hints given on the wiki > http://trac.osgeo.org/gdal/wiki/GdalOgrInJava. > > http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/ogrinfo.java > is indeed the closest example for your needs. > > I'm currently in the process to feed the Javadoc of the Java bindings. They > can be found at http://gdal.org/java/. The OGR part, the one you want to > use, is still incomplete however, but it should be relatively > straightforward to guess what a Java method does by reading the doc of the > corresponding C++ method at : http://gdal.org/ogr/hierarchy.html. > You should also be aware that some methods in them only apply to the > current development versions,. > > As Frank noted, the state of the Java bindings in recent released versions > of GDAL/OGR is partly broken/incomplete. The above ogrinfo.java in its > current state will not compile out of the box with GDAL/OGR <= 1.6.0, > although you should be able to get the gist of it to work by > adapting/commenting out some parts. > > Best regards > > Le Monday 09 March 2009 15:52:09 Frank Warmerdam, vous avez écrit : > > On Mon, Mar 9, 2009 at 9:29 AM, Paul Malm <paul.m...@gmail.com> wrote: > > > Mr Warmedam, > > > I'm sorry to bother you again, I got your mail about VPF readers in > > > java. I have not found any good ones yet... but I can see that you have > > > a java version of your GDAL/OGR library. The problem is that I do not > > > understand how to use it, is there a explanation on some wiki or > > > likewise? I can't understand how to use the Java bindings from > > > http://trac.osgeo.org/gdal/wiki/GdalOgrInJava > > > I would be happy to just read maps/charts in VPF/S57 format. > > > > Paul, > > > > There is VPF reading code in OpenMap from BBN, and I was > > vaguely under the impression there was VPF support in > > GeoTools as well (both in Java). > > > > Using the GDAL Java bindings can be moderately involved. > > > > The url you quote is a good start for example Java code, and > > (I think) build hints. You will still need to be familiar with the > > general OGR data model, and API which are described at: > > > > http://www.gdal.org/ogr/ogr_arch.html > > http://www.gdal.org/ogr/ogr_apitut.html > > > > Possibly the best example Java OGR program is: > > > > http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/ogrinfo.java > > > > It is sometimes difficult to get a build of all the components to > > use GDAL/OGR from Java. The OSGeo4W distribution includes > > Java bindings support, but it is a bit outdated and is windows > > only. If that is sufficient for your needs you can find OSGeo4W > > at the following url, and you would need the gdal, and gdal-java > > packages (through advanced install): > > > > http://osgeo4w.osgeo.org/ > > > > There have been many improvements by Even Rouault > > to the Java bindings in recent weeks, but you would need > > to build things from source which is not always easy. It > > might be best to followup with Even (perhaps on the gdal-dev > > mailing list) if you have additional questions. > > > > Best regards, > > > > ---------------------------------------+--------------------------------- > >-- --- I set the clouds in motion - turn up | Frank Warmerdam, > > warmer...@pobox.com light and sound - activate the windows | > > http://pobox.com/~warmerdam and watch the world go round - Rush | > > Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev