Bug 396234 - Add a feature which allow to switch latitude and longitude
Summary: Add a feature which allow to switch latitude and longitude
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (other bugs)
Version First Reported In: 5.9.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-06 07:25 UTC by Dav
Modified: 2018-07-08 08:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dav 2018-07-06 07:25:43 UTC
Hi there,

I discovered usage of the geolocalization editor which is really powerful (except that it cannot write on raw files).
Because sometimes I wants to use google map instead to find a geolocalization (because there is a street view, because interface is larger), I copied lat and long found in google maps in the geolocalization editor.
But I've seen that when doing that, lat and long are inverted.
Having a feature which allow to select pictures to invert and select invert lat and long in the editor would be really time helpful.
Regards
Comment 1 Maik Qualmann 2018-07-06 10:26:49 UTC
What coordinates do you copy and where from? You know that you can simply drag and drop the image from the image list in the Geolocation Editor onto the map?

Maik
Comment 2 Dav 2018-07-08 04:55:14 UTC
Hello,

I copy latitude and longitude from google maps.
Ex: if I geotag from google maps this point:
https://www.google.com/maps/place/41%C2%B018'21.2%22S+175%C2%B003'45.8%22E/@-41.305883,175.060515,17z/data=!3m1!4b1!4m6!3m5!1s0x0:0x0!7e2!8m2!3d-41.3058834!4d175.0627085

I copy the "-41.305883, 175.062709" text displayed in the google map page.
If I copy this field in a text editor, it will be well displayed as "-41.305883, 175.062709".
If I copy it in the geolocalisation editor, latitude will be 175, and longitude -41.
Anyway it's not the main problem. After being able to identify all files I geotagged in this way (means latitude and longitude are inverted), if I wants to fix that I have to open all files in the geolocalisation editor and for each of them:
- copy the latitude and longitude
- open a text editor
- remplace the latitude by the longitude and vice versa
- past the field content into the geolocalisation editor
by this way, I'm not sure I don't loose some precision in geolocalisation too.

I know that I can drag and drop on the map. But the map is too small for me. This is the reason why I use the google map page instead: map is larger.
Comment 3 Maik Qualmann 2018-07-08 07:30:03 UTC
Git commit d81ad4a2113e8c6a416eb78fa7be8e723c1980d9 by Maik Qualmann.
Committed on 08/07/2018 at 07:28.
Pushed by mqualmann into branch 'master'.

add auto detection for the correct latitude and longitude values from text mime data
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +12   -5    core/utilities/geolocation/editor/items/gpsimagelistcontextmenu.cpp

https://commits.kde.org/digikam/d81ad4a2113e8c6a416eb78fa7be8e723c1980d9
Comment 4 Maik Qualmann 2018-07-08 07:44:12 UTC
Wrong thought that does not work with all coordinates.

Maik
Comment 5 Maik Qualmann 2018-07-08 08:40:49 UTC
Git commit 905310b3c90dd6f9b8dab87a2fbdef6db58d200f by Maik Qualmann.
Committed on 08/07/2018 at 08:39.
Pushed by mqualmann into branch 'master'.

add menu action to paste swapped coordinates
FIXED-IN: 6.0.0

M  +17   -4    core/utilities/geolocation/editor/items/gpsimagelistcontextmenu.cpp
M  +2    -1    core/utilities/geolocation/editor/items/gpsimagelistcontextmenu.h

https://commits.kde.org/digikam/905310b3c90dd6f9b8dab87a2fbdef6db58d200f