<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>Hi,</DIV>
<DIV>I need to write the GPSLatitude and GPSLongitude tags into a jpg raster image (typically a photo taken with a camera),</DIV>
<DIV>I started doing some test but I noticed that CreateCopy does not copy the EXIF metadata </DIV>
<DIV>(or at least I've not been able to make it working).</DIV>
<DIV> </DIV>
<DIV>This is the example code I'm using:</DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P>hDriver = GDALGetDriverByName( </FONT><FONT color=#800000 size=2>"JPEG"</FONT><FONT size=2> );</FONT><FONT color=#008000 size=2></P></FONT><FONT size=2>
<P>hDataset = GDALOpen( "MySourceFile.jpg", GA_ReadOnly );</P><FONT size=2>
<P>hDstDS = GDALCreateCopy( hDriver, </FONT><FONT color=#800000 size=2>"MyDestFile.jpg"</FONT><FONT size=2>, hDataset, TRUE, NULL, NULL, NULL );</FONT></FONT></P></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>As a result MyDestFile.jpg does not contain any EXIF metadata while the source file has a lot of EXIF tags.</DIV>
<DIV> </DIV>
<DIV>Any idea?</DIV>
<DIV> </DIV>
<DIV>Marcello Ferrero</DIV></div><br>
<hr size=1>Choose the right car based on your needs.
Check out <a href="http://us.rd.yahoo.com/evt=48518/*http://autos.yahoo.com/carfinder/;_ylc=X3oDMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg-- ">Yahoo! Autos new Car Finder tool.</a>
</body></html>