[Gdal-dev] Identifying a DEM image programmatically

Frank Warmerdam warmerdam at pobox.com
Thu Jan 5 09:45:03 EST 2006


On 1/5/06, Rob Cairns <iotc at 3i.co.za> wrote:
> How does one distinguish a digital elevation model from other images programmatically? Hoping someone can help - Rob

Rob,

There is no absolute way to do this with GDAL (or in
general for that matter).  If you get back "m" or "ft" for
the GetUnitType() on a band then it is presumably elevation
data.  However, many elevation formats and general formats
with elevation data will not return that.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list