|
Posted by ranger123 on June 22, 2005, 2:50 am
Please log in for more thread options
Hi,
I have problems with reading and writing some geottif tags and I still
have not figure out how to do it. Please help. Thanks.
I have compield libgeotif 1.2.2 into a DLL. I have tried to copy the
Geo tags from one file to another but not all of the tags were copied.
The ones that were left out are Tagged_Information(eg.
ModelTiepointTag) and Corner coordinates. The function I used is as
follows:
-----------------------------------------------
sourcegtif = GTIFNew(stif);
destgtif = GTIFNew(dtif);
sourcegif->gt_tif = destgtif->gt_tif;
sourcegif->gt_flags |= FLAG_FILE_MODIFIED;
GTIFWriteKeys(sourcegif);
-----------------------------------------------
Is this the correct way of copying tags? Do I need to use GTIFKeySet
to set every tag?
I have look through the structures but I can't find the structure that
store the Corner coordinates. Any idea which structure contains it?
Thanks.
|