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"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></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'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">> Thanks, the read of the image is resolved.<br>
> But my app shows information about an open image, one data of that<br>
> information is (or will be) the endianness of the image, I mean, the format<br>
> of the image shouldn't be significant.<br>
> I need some method o struct that return the endianness of the image.<br>
><br>
> Thanks again.<br>
> Alejandro.<br>
><br>
> On 3 February 2010 15:03, Frank Warmerdam <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> wrote:<br>
> > Alejandro Mostovoi wrote:<br>
> >> Hi All,<br>
> >><br>
> >> I need to know the image endianness.<br>
> >> I search for in api's help and list but can't find anything.<br>
> >><br>
> >> Any idea?<br>
> ><br>
> > Alejandro,<br>
> ><br>
> > As mentioned by others the on-disk endianess varies by format and<br>
> > sometimes by file in a format. The endianess of data returned by the<br>
> > 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<br>
> > little<br>
> > endian byte order.<br>
> ><br>
> > Best regards,<br>
> > --<br>
> ><br>
> > ---------------------------------------+---------------------------------<br>
> >----- I set the clouds in motion - turn up | Frank Warmerdam,<br>
> > <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
> > light and sound - activate the windows |<br>
</div></div>> > <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><<a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/%7Ewarmerdam</a>> and watch the<br>
<div><div></div><div class="h5">> > world go round - Rush | Geospatial Programmer for Rent<br>
<br>
<br>
</div></div></blockquote></div><br>