TIOParams.EXIF_GPSLongitude
Declaration
property EXIF_GPSLongitude: Double;
Description
Returns the longitude in decimal degrees where the photo was taken (if the camera supports GPS).
Note:
◼This uses the following EXIF properties:
EXIF_GPSLongitudeDegrees,
EXIF_GPSLongitudeMinutes,
EXIF_GPSLongitudeSeconds and
EXIF_GPSLongitudeRef◼To save GPS data, you must set
EXIF_GPSVersionID to '2.2.0.0' (or use the const,
GPS_Version_ID)
// 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
◼IEGPSConvertDMSToDegDec◼EXIF_GPSLongitude_Str◼EXIF_GPSLatitude