Ok, <br><br>thanks for your answers<br clear="all"><br><br>Alejandro.<br>
<br><br><div class="gmail_quote">On 3 February 2010 15:26, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</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;">
Alejandro,<br>
<br>
There is no such general method in GDAL. Determining on disk endianness is<br>
format specific (it makes sense only for some formats) and, to the best of my<br>
knowledge, rarely/never exposed as a metadata that can be retrieved by the<br>
GDAL API. If you want it badly, you&#39;ll have to hack the appropriate drivers<br>
code to make them report the endianness.<br>
<br>
Le Wednesday 03 February 2010 19:15:00 Alejandro Mostovoi, vous avez écrit :<br>
<div><div></div><div class="h5">&gt; Thanks, the read of the image is resolved.<br>
&gt; But my app shows information about an open image, one data of that<br>
&gt; information is (or will be) the endianness of the image, I mean, the format<br>
&gt; of the image shouldn&#39;t be significant.<br>
&gt; I need some method o struct that return the endianness of the image.<br>
&gt;<br>
&gt; Thanks again.<br>
&gt; Alejandro.<br>
&gt;<br>
&gt; On 3 February 2010 15:03, Frank Warmerdam &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:<br>
&gt; &gt; Alejandro Mostovoi wrote:<br>
&gt; &gt;&gt; Hi All,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I need to know the image endianness.<br>
&gt; &gt;&gt; I search for in api&#39;s help and list but can&#39;t find anything.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Any idea?<br>
&gt; &gt;<br>
&gt; &gt; Alejandro,<br>
&gt; &gt;<br>
&gt; &gt; As mentioned by others the on-disk endianess varies by format and<br>
&gt; &gt; sometimes by file in a format.  The endianess of data returned by the<br>
&gt; &gt; GDAL API is always<br>
&gt; &gt; local machine order. So if you read a big endian file on a little endian<br>
&gt; &gt; system, the RasterIO() calls will return the data to the application in<br>
&gt; &gt; little<br>
&gt; &gt; endian byte order.<br>
&gt; &gt;<br>
&gt; &gt; Best regards,<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; ---------------------------------------+---------------------------------<br>
&gt; &gt;----- I set the clouds in motion - turn up   | Frank Warmerdam,<br>
&gt; &gt; <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
&gt; &gt; light and sound - activate the windows |<br>
</div></div>&gt; &gt; <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a>&lt;<a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/%7Ewarmerdam</a>&gt; and watch the<br>

<div><div></div><div class="h5">&gt; &gt; world go round - Rush    | Geospatial Programmer for Rent<br>
<br>
<br>
</div></div></blockquote></div><br>