[Gdal-dev] Creating GIFs, JPEGS, etc

Gerald Brandt gbr at MICROPILOT.com
Tue Aug 24 17:53:21 EDT 2004


Hi,

I'm succesfully loading DTED, USGS DEM and GTOPO30 DEM files.  I use
these data files to get elevation information for specific latitudes and
logitudes.

What I would like to do is display an image (BMP, GIF, JPEG) of the
elevation data in different colours.  I'm not quite sure on how to do
this properly.  Is there an 'easy' way to do this with GDAL?

Thanks,

Gerald

Ps: I have tried using CreateCopy, but I always get a full black or
white image.



    GDALDriver *tdriver = (GDALDriver *)GDALGetDriverByName("GIF") ;
    GDALDataset *tset ;

    tset = tdriver->CreateCopy("c:\\copy.gif", mDataInfo[2].dataset,
FALSE, NULL, NULL, NULL) ;
    GDALClose(tset) ;




More information about the Gdal-dev mailing list