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

Tamas Szekeres szekerest at gmail.com
Wed Feb 14 16:59:53 EST 2007


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.
>
> Cheers
> Andrea
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>



More information about the Gdal-dev mailing list