geolocation - database from geonames.org

Started by TimA, November 14, 2024, 06:45:50 PM

Previous topic - Next topic

TimA

Been exploring exiftool's "geolocation information (including city, region, subregion and country) from GPS coordinates (and visa versa) using an included database of all cities with population 2000 or greater based on a Creative Commons database geonames.org"

Question: exiftool is 324 K file while a dump of the geonames file is 9.1Meg.
Where is the latter stored? And is it updated with each new version of exiftool?
Thanks

StarGeek

Quote from: TimA on November 14, 2024, 06:45:50 PMuestion: exiftool is 324 K file while a dump of the geonames file is 9.1Meg.
Where is the latter stored?

The full database isn't included. From this previous post
Quote from: Phil Harvey on March 06, 2024, 09:49:48 AMThe >1000-population city database from geonames.org that FrankB mentioned, but I have reformatted the database to reduce the file size.

You can find further details in that thread and in the Geolocation.pm source code.

Quote from: TimA on November 14, 2024, 06:45:50 PMAnd is it updated with each new version of exiftool?

It doesn't look like it's updated every time. You can check the version history, as it appears to be included. For example, it was updated with Version 13.00, Oct. 29, 2024.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

I plan to update the geolocation database with each production version (every couple of months or so).

Currently the included database is cities with population > 2000 (read here for more details), and its size is 2.9 MB.  I've worked hard to store it as efficiently as I could to reduce the size.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).