Summary: | Allow to search by Country, City, Town when appropriate geo-location tags exist in database | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Jens <jens-bugs.kde.org> |
Component: | Searches-Advanced | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | REOPENED --- | ||
Severity: | wishlist | CC: | alan.pater, caulier.gilles, ingomar, iwannaberich, jose_oliver, josjonkeren, mcfarol84, metzpinguin |
Priority: | NOR | ||
Version: | 4.12.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Current Geographic search options |
Description
Jens
2015-08-29 18:09:50 UTC
As always, the Metadata Working Group provides guidelines on which XMP properties should be used here, as well as how those properties map to legacy IPTC and to legacy photoshop. www.metadataworkinggroup.org/pdf/mwg_guidance.pdf#page=48 Those XMP properties are (in exiv2 format): Xmp.Iptc4xmpExt.WorldRegion Xmp.Iptc4xmpExt.CountryName Xmp.Iptc4xmpExt.ProvinceState Xmp.Iptc4xmpExt.City Xmp.Iptc4xmpExt.Sublocation *** This bug has been marked as a duplicate of bug 180268 *** *** Bug 433391 has been marked as a duplicate of this bug. *** *** Bug 180268 has been marked as a duplicate of this bug. *** Created attachment 153500 [details]
Current Geographic search options
IPTC Location fields - Country, State-Province, City and Sublocation fields should be searchable.
This bug was not about the existence of Country and City fields, but about automatically (!!!) filling them out when geotagging. Nobody wants to manually fill out form fields if this can be automated. And while we're at it: since placing photos on a map (geotagging) will automatically also define which country, region, city, street, etc. a photo was taken in, why not put the data into the IPTC Location fields - maybe even *instead* of polluting the tag tree, not just in addition? (In reply to Jens from comment #6) > This bug was not about the existence of Country and City fields, but about > automatically (!!!) filling them out when geotagging. > Nobody wants to manually fill out form fields if this can be automated. > > And while we're at it: since placing photos on a map (geotagging) will > automatically also define which country, region, city, street, etc. a photo > was taken in, why not put the data into the IPTC Location fields - maybe > even *instead* of polluting the tag tree, not just in addition? Indeed, please let Digikam automatically also fill the fields: IPTC:City IPTC:Sub-location IPTC:Province-State IPTC:Country-PrimaryLocationCode IPTC:Country-PrimaryLocationName .... when geotagging. I guess there should also be some kind of small interface / setting where can be defined "what" will be taken for these values. In Digikam, we see: 1. Country 2. State 3. State district 4. City 5. City district 6. Suburb 7. Place 8. Village 9. area So 9 possible fields; if all are filled // data retrieved. There should be some interface where we can define which of these will be filled to the 4 IPTC fields; i think. Digikam already has a reverse geolocation lookup functionality with the Geolocation Editor plugin. It only needs to be modified with the option so that the respective IPTC fields are filled in. Git commit 08af94d617c41413e3835c1e40e5948d45e8a09b by Maik Qualmann. Committed on 03/12/2022 at 17:10. Pushed by mqualmann into branch 'master'. first step to write basic locations metadata Related: bug 410425 M +80 -21 core/utilities/geolocation/geoiface/items/gpsitemcontainer.cpp M +6 -0 core/utilities/geolocation/geoiface/items/gpsitemcontainer.h M +21 -17 core/utilities/geolocation/geoiface/reversegeocoding/rgwidget.cpp https://invent.kde.org/graphics/digikam/commit/08af94d617c41413e3835c1e40e5948d45e8a09b Git commit 34e985a2cf9a433db5c0084f7c5d20b3c47d44e7 by Maik Qualmann. Committed on 03/12/2022 at 19:13. Pushed by mqualmann into branch 'master'. write location infos to the database Related: bug 410425 M +9 -2 core/libs/database/item/containers/itemgps.cpp M +38 -36 core/utilities/geolocation/geoiface/items/gpsitemcontainer.cpp M +5 -0 core/utilities/geolocation/geoiface/items/gpsitemcontainer.h https://invent.kde.org/graphics/digikam/commit/34e985a2cf9a433db5c0084f7c5d20b3c47d44e7 Git commit 136af4080854ef89023135c016eba87e60056b22 by Maik Qualmann. Committed on 03/12/2022 at 22:46. Pushed by mqualmann into branch 'master'. first step to get country code We still need a function to convert the two-digit country code to the three-digit country code. Related: bug 410425 M +18 -9 core/libs/database/item/containers/itemgps.cpp M +3 -2 core/utilities/geolocation/geoiface/backends/backend-geonames-rg.cpp M +3 -3 core/utilities/geolocation/geoiface/backends/backend-geonamesUS-rg.cpp M +1 -0 core/utilities/geolocation/geoiface/backends/backend-osm-rg.cpp M +8 -1 core/utilities/geolocation/geoiface/items/gpsitemcontainer.cpp M +20 -6 core/utilities/geolocation/geoiface/reversegeocoding/parsetagstring.h M +9 -4 core/utilities/geolocation/geoiface/reversegeocoding/rgtagmodel.cpp M +24 -8 core/utilities/geolocation/geoiface/reversegeocoding/rgwidget.cpp https://invent.kde.org/graphics/digikam/commit/136af4080854ef89023135c016eba87e60056b22 Git commit 8c6b332ee8c9dc0465d2fa9532b29f5996c094c5 by Maik Qualmann. Committed on 04/12/2022 at 08:34. Pushed by mqualmann into branch 'master'. add support for country codes Related: bug 410425, bug 366286 M +6 -1 core/utilities/geolocation/geoiface/items/gpsitemcontainer.cpp M +309 -52 core/utilities/geolocation/geoiface/reversegeocoding/rgwidget.cpp M +4 -0 core/utilities/geolocation/geoiface/reversegeocoding/rgwidget.h https://invent.kde.org/graphics/digikam/commit/8c6b332ee8c9dc0465d2fa9532b29f5996c094c5 Git commit e0c6777e0efa1b1b6c226a2e01627a52aefc3038 by Maik Qualmann. Committed on 11/01/2023 at 22:20. Pushed by mqualmann into branch 'master'. first step, add country search to advanced search Related: bug 433391, bug 464165 M +22 -0 core/libs/database/coredb/coredb.cpp M +2 -0 core/libs/database/coredb/coredb.h M +1 -0 core/libs/database/item/lister/itemlister_salbum.cpp M +4 -0 core/libs/database/item/query/itemquerybuilder.cpp M +16 -0 core/utilities/searchwindow/searchfields_createfield.cpp M +1 -0 core/utilities/searchwindow/searchgroup.cpp https://invent.kde.org/graphics/digikam/commit/e0c6777e0efa1b1b6c226a2e01627a52aefc3038 Git commit ecd159a519c8ef79e402b9dfca5ba56f80f8023d by Maik Qualmann. Committed on 29/01/2023 at 16:55. Pushed by mqualmann into branch 'master'. add search for province, county and city Related: bug 433391 FIXED-IN: 8.0.0 M +2 -1 NEWS M +2 -1 core/libs/database/coredb/coredb.cpp M +33 -2 core/libs/database/item/query/itemquerybuilder.cpp M +49 -1 core/utilities/searchwindow/searchfields_createfield.cpp M +6 -3 core/utilities/searchwindow/searchgroup.cpp https://invent.kde.org/graphics/digikam/commit/ecd159a519c8ef79e402b9dfca5ba56f80f8023d |