Thanks, the read of the image is resolved.
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't be significant.
I need some method o struct that return the endianness of the image.

Thanks again.
Alejandro.


On 3 February 2010 15:03, Frank Warmerdam <[email protected]> wrote:

> Alejandro Mostovoi wrote:
>
>> Hi All,
>>
>> I need to know the image endianness.
>> I search for in api's help and list but can't find anything.
>>
>> Any idea?
>>
>
> Alejandro,
>
> As mentioned by others the on-disk endianess varies by format and sometimes
> by file in a format.  The endianess of data returned by the GDAL API is
> always
> local machine order. So if you read a big endian file on a little endian
> system, the RasterIO() calls will return the data to the application in
> little
> endian byte order.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> [email protected]
> light and sound - activate the windows | 
> http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to