[gdal-dev] how to judge a file is a DEM file or not?
Even Rouault
even.rouault at mines-paris.org
Wed May 2 03:24:31 EDT 2012
Selon weixj <weixj2003ld at 163.com>:
> How to judge a file is a DEM file or not?
There's no straightforward answer. Some formats (DTED, SRTM, ...) are
specifically aimed for DEM. But DEM can also be conveyed through more generic
purpose formats such as GeoTIFF. In that case, looking at the data type of the
raster bands might give a clue. DEM use generally Int16 or Float32 data types
(at least, not Byte which has not a sufficient range to express elevations).
Eventually, looking at the associated metadata might be necessary to know the
semantics of the data.
Best regards,
Even
More information about the gdal-dev
mailing list