[gdal-dev] GeoTiff writing with Java Bindings (signed data
types)
Stefan Mietke
St.Mietke at gmx.de
Mon Jan 14 10:26:43 EST 2008
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
More information about the gdal-dev
mailing list