Selon weixj <[email protected]>:

> 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


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to