[gdal-dev] GDAL Byte Swapping?

Trist, Brenda R. BRENDA.R.TRIST at saic.com
Thu Jun 14 12:26:09 PDT 2012


I am new to GDAL.  I recently downloaded GDAL have successfully built 

and linked to the source.  The program I am writing reads in a 

GeoTiff DEM (32bit format) and writes the dem data portion out to a 

ntif file (using NITRO NITF routines from sourceforge).

I then ran the command od -c on the tif file I am reading and on the 

ntif I just created to compare the DEM data area.  I noticed that 

while the data is there that the bytes appear to have been swapped.  

I am assuming that I don't want it to do that.  I was wondering if 

anyone has encountered this same thing and if there is something that 

I should be doing differently?  I researched the bug list and all 

mentions of byteswapping pretty much have been closed due to being 

fixed.  So I am assuming that I must be doing something wrong at my end.

 

 

Thank you,

Becky Trist

 

SAIC

100 Rialto Place, Suite 200

Melbourne, FL  32901

321-751-3236

 

"Sometimes you have to look reality in the eye, and deny it."   -
Garrison Keillor

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120614/55169f44/attachment.html>


More information about the gdal-dev mailing list