[Gdal-dev] Java bindings and wkb support, a patch for gdal

Frank Warmerdam warmerdam at pobox.com
Wed Feb 14 19:24:29 EST 2007

Tamas Szekeres wrote:
> Hi Andrea,
> Though I'm not the dedicated java maintainer I volunteer to commit
> such changes if Benjamin will not be around.
> Tamas
> 2007/2/14, Andrea Aime <aaime at openplans.org>:
>> Hi all,
>> as some of you may know, I had some issues with the java bindings
>> with wkb export (memory management issues breaking the jvm).
>> I have prepared a patch that makes wkb export work and attached it
>> to this mail. I sent the same mail to Benjamin Collins a few days
>> ago, but got no answer so far, so I'm addressing this to the
>> mailing list as well. Who's mantaining the java bindings, btw?
>> In the patch I make java allocate the byte buffer (in the same spirit as
>> the C++ API) and added a typemap, taking inspiration from the C#
>> mappings that already worked around the wkb memory management issues.
>> Works nice, and the speedup compared to WKT is significant, 4 times on
>> my full shapefile load test (compared to reading geometries with WKT,
>> that did not tear down the jvm).
>> If the patch has issues, let me know, I'll try to work them out.


I'd add that since Benjamin seems a bit missing-in-action, I'd be pleased
to sponsor you as a GDAL committer if you were interested in helping to
maintain the Java bindings.  In the meantime, going through Tamas would
be great, or if there is no hurry just file a bug and we will have Mateusz
address it when he comes on stream as general maintainer.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

More information about the Gdal-dev mailing list