[Gdal-dev] Copying meta data

Matt Hanson mhanson at photon.com
Fri Nov 17 13:17:08 EST 2006


Hi,
 
I'm reading in a GDAL dataset, doing some processing, and outputting it to another file.  The output file is created using the Create() function, but I want to make sure I copy over all the metadata from the source.
 
What do I need to do to ensure I've copied over all metadata and geographic info?    Is GetMetaData(), GetProjectionRef(), and GetGeoTransform() all I need, followed by subsequent calls to SetMetaData(), SetProjectionRef(), and SetGeoTransform() ?    
 
Thanks in advance!
 
matt




More information about the Gdal-dev mailing list