[FWTools] Converting a DEM file to a *.png Height Map

Matt Wilkie matt.wilkie at gov.yk.ca
Thu Jun 19 12:52:51 EDT 2008

Hi Frank,

For OpenEV it should be sufficient to load the DEM, then use the "File > 
Export" menu and select png for output format. If you've tried this 
already and it didn't work you may have to play with the output byte 
type (you'll need to consult the docs for your target application for 
this) using the commandline gdal_translate.

The following convert to an 8bit and unsigned 16bit png respectively:

   gdal_translate -of png -ot byte infile.dem outfile.png
   gdal_translate -of png -ot uint16 infile.dem outfile.png

Command reference http://www.gdal.org/gdal_translate.html


matt wilkie
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax

Frank Haymes wrote:
> How do I export a DEM Height Map to a .png file using OpenEV?
> I have downloaded and install FWTools.  Is there nother program to do this?
> Frank G. Haymes
> ------------------------------------------------------------------------
> Introducing Live Search cashback . It's search that pays you back! Try 
> it Now 
> <http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback>
> ------------------------------------------------------------------------
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/

More information about the FWTools mailing list