TIOParams.EXIF_GPSLatitudeSeconds
TIOParams.EXIF_GPSLatitudeSeconds
Declaration
property EXIF_GPSLatitudeSeconds: Double;
Description
Returns the latitude seconds where the photo was taken (if the camera supports GPS).
Note: To save GPS data, you must set
EXIF_GPSVersionID to '2.2.0.0' (or use the const,
GPS_Version_ID), and also have valid values for
EXIF_GPSLatitudeRef and
EXIF_GPSLongitudeRef
// Write EXIF data to the current file
ImageEnView1.IO.Params.EXIF_GPSLatitude := StrToFloat( edtEXIF_GPSLatitude.Text );
ImageEnView1.IO.Params.EXIF_GPSLongitude := StrToFloat( edtEXIF_GPSLongitude.Text );
ImageEnView1.IO.Params.EXIF_GPSVersionID := GPS_Version_ID;
ImageEnView1.IO.InjectJpegEXIF('D:\GPSStamped.jpg');
// Update the GPS EXIF data in a file
io := TImageEnIO.create(nil);
try
io.ParamsFromFile( FilenameStr );
io.Params.EXIF_GPSLatitude := GPSLatitudeFloat;
io.Params.EXIF_GPSLongitude := GPSLongitudeFloat;
io.Params.EXIF_GPSVersionID := GPS_Version_ID;
io.Params.EXIF_HasEXIFData := True;
io.InjectJpegEXIF( FilenameStr );
finally
io.Free;
end;
See Also
◼EXIF_GPSLatitude
◼EXIF_GPSLatitude_Str