Skip to main content
Participant
August 22, 2025
Question

XMP GPS coordinates are interpreted incorrectly

  • August 22, 2025
  • 1 reply
  • 159 views

Hi,

 

See attached .psd file, generated by PTGui. It contains an XMP section with the following GPS location:

 

<exif:GPSVersionID>2.2.0.0</exif:GPSVersionID>
<exif:GPSLatitude>51,55.8650N</exif:GPSLatitude>
<exif:GPSLongitude>4,28.2967W</exif:GPSLongitude>

Photoshop's File - Info shows this incorrectly as 51.0 and 4.0.
 
I think the XMP data is formatted according to spec:
GPSCoordinate
A Text value in the form “DDD,MM,SSk” or “DDD,MM.mmk”, where:
DDD is a number of degrees
MM is a number of minutes
SS is a number of seconds
mm is a fraction of minutes
k is a single character N, S, E, or W indicating a direction (north, south, east, west)
Leading zeros are not necessary for the for DDD, MM, and SS values. The DDD,MM.mmk form should be used
when any of the native EXIF component rational values has a denominator other than 1. There can be any
number of fractional digits.​

1 reply

creative explorer
Community Expert
Community Expert
August 22, 2025

@Joost23261292kdtl the GPS coordinates is based on 'where you are taking the photo' — you are saying Photoshop incorrectly interprets the XMP GPS data generated by PTGui? PTGui is writing the GPS coordinates in XMP using a specific format (DDD,MM.mmk) that is compliant with the XMP specification. Photoshop isn't changing the coordinates, it's just failing to fully interpret the data because it's not structured in the way it expects.

m
Participant
August 23, 2025

Yes that's correct, Photoshop is failing to correctly interpret the data.

 

For some more context, the real problem occurs when re-exporting from Photoshop: you will then end up with a file with an incorrect GPS location. 

 

Consider this workflow: export a layered .psd file from PTGui, do some editing and flatten the image in Photoshop, export to TIFF and then import the panorama in a virtual tour or in Google Maps. The panorama will be placed in the wrong map location.