[gdal-dev] GeoTiff writing with Java Bindings (signed data types)

Stefan Keller sfkeller at gmail.com
Mon Jan 14 12:08:25 EST 2008


Obviously, there seems to be quite some interest in a Java binding to
GDAL/OGR.
Can someone summarize and perhaps update the wiki/documentation with
instructions and example downloads?
Any volunteers to become a committer for this Java Binding?

-- Stefan

2008/1/14, Stefan Mietke <St.Mietke at gmx.de>:
>
> Thats it! It works, wow ...
>
> For interested list members:
>
> The solution of this problem is simple:
>
> After allocating a ByteBuffer, you have to set the Byte order, before
> reading the raster with 'ReadRaster_Direct()' method.
>
> ByteBuffer byteBuffer = ByteBuffer.allocateDirect(buffer_size);
> byteBuffer.order (ByteOrder.nativeOrder());
>
> For the writing process you have to do the same with the output
> ByteBuffer.
>
> I thank Daniele Romagnoli and Benjamin Collins for their great support.
>
> Stefan Mietke
> --
> Institute for Cartography
> TU Dresden
>
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080114/f212dd8c/attachment.html


More information about the gdal-dev mailing list