SetGeoKey Example for Visual C++
ILEADRasterVariant *pRasVar = NULL;
void TestSetGeoKey(ILEADRasterIO * pRasterIO)
{
/* This example sets the GTModelTypeGeoKey key to the Project Coordination System value */
pRasterIO->put_GeoKeyType (TAG_SHORT);
pRasterIO->put_GeoKeyCount (1);
pRasVar->Type = VALUE_SHORT;
pRasVar->ShortValue = 1;
pRasterIO->put_GeoKeyData (pRasVar);
pRasterIO->SetGeoKey (1024);
/* Every GeoTIFF file I save from now on will contain this GeoKey */
}