[Gdal-dev] PNG Heightfield
Joaquim Luis
jluis at ualg.pt
Mon Apr 5 11:11:57 EDT 2004
J Douglas Gough wrote:
> I'm interested in checking out the gmt to tga heightfield code that J. Luis
> suggested. PNG would be a great way to store elevation data - it's got great
> lossless compression and could be easily ported once a standard palette is
> created. Sort of a "GeoPNG" for elevation (i.e. PEG or 'PNG Elevation
> Graphic') was what I had in mind. If I come up with something useful, I'll
> make sure to post it. I've got the entire National Elevation Dataset
> converted to MrSid as integer values and ready to host online, but the Sid
> format is not as easy to read/write and add to custom apps as far as
> licensing compared to PNG.
>
Douglas,
Here it goes. Remember that you have to compile it with gmt (just add its name
to the makefile and recompile)
Or use the code and adapt to an other input format.
The program can used to produce "normal" tga image files. In which case it
relies on the GMT color palettes.
Or to produce an height field. This option needs gmt for the grid reading
routines. If you change it to read
other formats than it should not need gmt anymore.
J. Luis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grd2tga.zip
Type: application/x-zip-compressed
Size: 6128 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040405/1dc1f7a3/grd2tga.bin
More information about the Gdal-dev
mailing list