[Gdal-dev] Copying meta data

Frank Warmerdam warmerdam at pobox.com
Fri Nov 17 19:23:10 EST 2006


Matt Hanson wrote:
> Are GDALDataset and GDALPamDataset fairly interchangeable?  Would it be as
> simple as changing the base classes to turn on support for PAM ?

Matt,

GDALDataset is a base class for GDALPamDataset.  You will need to include
gdal_pam.h (where gdal_priv.h was normally included).  But yes, it should
generally be sufficient to change which case you use as a base class for
your format specific dataset and band classes.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list