Hi again Stefan,<br>I have received your code and I will take a look on it.<br>Anyway, I suggest to create a view of your ByteBuffer as an IntBuffer and then set data as Int. <br><br>PS: We are working on an ImageIO-Ext project which provides a set of format readers/writers extending the Sun's Java ImageIO framework. This also contains a GeoTiff plugin (reader/writer) leveraging on GDAL. Actually I'm working on the writer capabilities (by supporting sourceRegions, subSampling, destination, destinationOffset settings and metadata settings,...). In case you are interested on it, you may find the project here:
<a href="https://imageio-ext.dev.java.net/">https://imageio-ext.dev.java.net/</a> and get the code from subversion <br>As I have pointed out some days ago, actually, the homepage requires a real improvement since it is in a
very preliminar version (I have written some rows just for
introduction... 50 seconds of work :) ). We (GeoSolutions) will improve it very soon.
<br><br>PPS: while writing this email, I have noticed the reply of Benjamin Collins... Sorry for posting the same advice.<br><br>Best Regards,<br>Daniele<br><br><div class="gmail_quote">On Jan 11, 2008 11:01 AM, <<a href="mailto:St.Mietke@gmx.de">
St.Mietke@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi list members,<br><br>I tried to create a geotiff with the GDAL library (using Java), but it seems, that only unsigned-Byte writing is possible.
<br><br>public int WriteRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer buf)<br><br>I need a signed integer coverage.<br><br>Can anyone tell me, if there is any possibility to create such a geotiff coverage with unsigned data types?
<br><br>Thanks in advance,<br>Stefan Mietke<br>--<br>Institute for Cartography<br>TU Dresden<br><br>GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.<br>Alle Infos und kostenlose Anmeldung: <a href="http://www.gmx.net/de/go/freemail" target="_blank">
http://www.gmx.net/de/go/freemail</a><br>_______________________________________________<br>gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">
http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------------------<br>Eng. Daniele Romagnoli <br>Software Engineer<br><br>GeoSolutions
S.A.S.<br>Via Carignoni 51<br>55041 Camaiore (LU)<br>Italy<br><br>phone: +39 0584983027<br>fax: +39 0584983027<br>mob: +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it">http://www.geo-solutions.it</a>
<br><br>-------------------------------------------------------<br>