GPS Longitude Reverse in Properties of Images With Exif GPS Data
I noticed this when trying to find out where I had taken a picture. The format of the GPS coordinates in the properties window of nautilus is "%f N / %f W (%.0f m)", so coordinates in the eastern hemisphere should be displayed with a negative western longitude. This is not the case.
Line 258 of extensions/image-properties/nautilus-image-properties-page.c says
gps_coords = g_strdup_printf (_("%f N / %f W (%.0f m)"), latitude, longitude, altitude);
However, in lines 88-89 of GNOME/gexiv2/-/blob/master/gexiv2/gexiv2-metadata-gps.cpp, which is where the longitude value is calculated, the longitude has a positive sign for eastern longitudes and a negative sign for western longitudes:
if (longitude_ref[0] == 'S' || longitude_ref[0] == 'W')
*longitude *= -1.0;
There are a number of possibilities to solve this issue, among which are:
- replace the 'W' in the format string with an 'E' (in every translation)
- change the sign of the longitude in nautilus-image-properties-page.c
- (the nicest option) use the signs of the latitude and longitude values to determine the hemisphere (N/S and E/W) and format the display accordingly.