Thanks, the read of the image is resolved. <br>But my app shows information about an open image, one data of that information is (or will be) the endianness of the image, I mean, the format of the image shouldn&#39;t be significant.<br>
I need some method o struct that return the endianness of the image.<br><br clear="all">Thanks again.<br>Alejandro.<br>
<br><br><div class="gmail_quote">On 3 February 2010 15:03, Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Alejandro Mostovoi wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All,<br>
<br>
I need to know the image endianness.<br>
I search for in api&#39;s help and list but can&#39;t find anything.<br>
<br>
Any idea?<br>
</blockquote>
<br></div>
Alejandro,<br>
<br>
As mentioned by others the on-disk endianess varies by format and sometimes<br>
by file in a format.  The endianess of data returned by the GDAL API is always<br>
local machine order. So if you read a big endian file on a little endian<br>
system, the RasterIO() calls will return the data to the application in little<br>
endian byte order.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Programmer for Rent<br>
<br>
</font></blockquote></div><br>