[Gdal-dev] Elevation Units in DEM or DTED files

Gerald Brandt gbr at MICROPILOT.com
Fri Jun 4 17:38:03 EDT 2004


Thanks again.  This one I should have been able to find myself... Doh!

Gerald


> -----Original Message-----
> From: gdal-dev-admin at remotesensing.org 
> [mailto:gdal-dev-admin at remotesensing.org] On Behalf Of Frank Warmerdam
> Sent: Friday, June 04, 2004 4:29 PM
> To: gdal-dev at remotesensing.org
> Subject: Re: [Gdal-dev] Elevation Units in DEM or DTED files
> 
> 
> Gerald Brandt wrote:
> > Hi,
> > 
> > Is there a way using GDAL where I can find out the units used for 
> > measurements.  For example, is the elevation in feet or in 
> meters?  I 
> > looked at the projection text and couldn't find anything.
> 
> Gerald,
> 
> Call GetUnitType() on a GDALRasterBand and it will return 
> either "m" or "ft" indicating the pixel values are elevations 
> in meters or feet.  Defaults to meters even for non-elevation 
> products.  It does return ft for some USGS DEM, and SDTS dem 
> products.  Not sure about USGS DEM.
> 
> 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
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org 
> http://remotesensing.org/mailman/listinfo/gdal> -dev
> 



More information about the Gdal-dev mailing list