Big Sur Photos XMP export error in western and southern locations
FYI: I wondered why sometimes exporting .xmp from Photos and copying its metadata to a .jpg put it in a completely wrong location. It seems to be caused by a missing minus (-) sign:
macOS 11 Big Sur Photos.app 6.0 "Export Unmodified Original, Export IPTC as XMP" omits minus (-) sign from western and southern hemisphere coordinates in the exported .xmp.
For example Santiago, Chile (-33.45, -70.666667) is put on the other side of the globe near Islamabad, Pakistan (33.45, 70.666667). The exported .xmp has the following GPS data (the W and S letters are OK but the minus sign is omitted):
<exif:GPSLongitude>70.666667</exif:GPSLongitude>
<exif:GPSLongitudeRef>W</exif:GPSLongitudeRef>
<exif:GPSLatitude>33.45</exif:GPSLatitude>
<exif:GPSLatitudeRef>S</exif:GPSLatitudeRef>
If GPS coordinates are copied from such .xmp, the location is on the other side of the globe. A workaround is to use a text editor to add the minus signs to the .xmp.