[Gdal-dev] Parse DEM file problem

Clay, Bruce bclay at ball.com
Wed May 5 17:49:33 EDT 2004


Martin:
  Thanks for your reply.  It looks like we are retrieving the data the
same way. I am not totally sure what you are doing after the retrieval
but it looks like you are scaling the data back to 8 bits then combining
the values from separate files to create a single image which you
display as a DIB.

In a comment you mentioned interleaving the bits.  For elevation (DEM)
files, doesn't each value represent the altitude in meters for that
point.  That is from the file origin (say 20 deg w, 40 deg N +
(pixelSize * pixelPosition).  

The interesting point is that the high min and max values returned by
GDAL seemed to match the pixel data I encountered but they are way out
of range from the values indicated in the GTOPO30 documentation.

I'll read some more of the doc to see what shows up but something really
seems out of whack.  Most probably in my code but it is basically a cut
and paste from the GDAL code

MicroDem also has a problem reading these files.  These are the standard
GTO30 files downloaded off the net.


Bruce
bclay at ball.com



More information about the Gdal-dev mailing list