Replace the geography authority files used by the wizard
the current authority files are a bit clunky and dont' match what most people call countries.
I think this is the authority we are using right now - https://www.geonames.org/export/ They have updated data (and the country names seem fixed too)
Also, I like this one a lot - https://github.com/dr5hn/countries-states-cities-database (it even has GUIDs that are resolvable in WikiData)
We updated the authority file from https://www.geonames.org/export/ 2020/8/21.
Seems like the updated geonames (August 2020) still have very long country names.
Though, the other geoname source (https://github.com/dr5hn/countries-states-cities-database) has normal country names, so we can use it. Though it is currently not in the format that specify can immediately work with. So either this data set or Specify have to be adapted to work with each other.
Or, we can use the same geoname authority, but manually replace the country names.
The Aug 2020 version of geonames.sql.zip will now work with the wizard. (The file countryInfo.infile needed to be renamed to countryinfo.infile.)
Can you please let me know where these came from so that I can update the documentation?
Edited contientcodes table definition to increase length of name field. Eliminated duplication of the code 'AF' and the name "North Pacific Ocean - Ulithi Atoll" in continentcodes.infile.
Resulting tree looks OK, BUT "North Pacific Ocean - Ulithi Atoll" apparently needs to be removed from geoname.infile also because it is duplicated in the tree.
Also the Oceans don't have children, and we probably don't need them anyway.
I don't know. Max sent me this link this morning http://download.geonames.org/export/dump/ GeoNameshttp://download.geonames.org/export/dump/ Readme for GeoNames Gazetteer extract files ===== This work is licensed under a Creative Commons Attribution 4.0 License, see https://creativecommons.org/licenses/by ... download.geonames.org
From: norinespears @.> Sent: Thursday, July 1, 2021 12:09 PM To: specify/specify6 @.> Cc: Noble Jr, Timothy G. @.>; Comment @.> Subject: Re: [specify/specify6] Replace the geography authority files used by the wizard (#948)
Can you please let me know where these came from so that I can update the documentation?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspecify%2Fspecify6%2Fissues%2F948%23issuecomment-872413529&data=04%7C01%7Ctimo%40ku.edu%7Cfe49b495034c47859bee08d93cb2fd92%7C3c176536afe643f5b96636feabbe3c1a%7C0%7C0%7C637607561722515798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LDDQWS0UMdDUNT8Gktrr9GViteOYUlJfBMs%2F%2BXfAXMc%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAWHX2SJEMRL24RERCMRDMDTVSOMTANCNFSM47GPGC3A&data=04%7C01%7Ctimo%40ku.edu%7Cfe49b495034c47859bee08d93cb2fd92%7C3c176536afe643f5b96636feabbe3c1a%7C0%7C0%7C637607561722525688%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l63mS5MlEHk3VoHUlrTDraI1XgSU8P4WfsmeJyfWJck%3D&reserved=0.
Replaced long country names with short variants in cada728b5dbb4c985e3136876074a5ffbf020535
For future reference, this is the MySQL query used to achieve that:
START TRANSACTION;
UPDATE geoname gg
JOIN
(
SELECT g.geonameid,
g.asciiname,
c.NAME
FROM geoname g
JOIN countryinfo c
ON c.iso_alpha2 = g.country
WHERE g.fcode = 'PCLI'
AND c.NAME != g.asciiname ) g
ON gg.geonameid = g.geonameid
SET gg.asciiname = g.NAME
WHERE gg.fcode = 'PCLI';
UPDATE geoname
SET asciiname = 'Congo'
WHERE geonameid = 2260494;
SELECT g.geonameid,
g.asciiname,
c.NAME
FROM geoname g
JOIN countryinfo c
ON c.iso_alpha2 = g.country
WHERE g.fcode = 'PCLI';
COMMIT;
This is not working in the Wizard itself. When I run the Wizard I am not given the option of pre-loading Geography and when I open my new database the info is not there.
What I meant to say is that I run the Wizard to create a new database but the Geography is not loaded by the Wizard.
Do you have the latest build installed? https://github.com/specify/specify6/actions/runs/991484180
apologies! I am on a Mac and using build #305. Since I have had issues with my setup I asked Theresa to verify that she was seeing the same thing and she is. She is also using #305 but on a PC.
Unable to replicate I used this build and the tree was created with short names without issues - https://github.com/specify/specify6/actions/runs/991484180 I also tried building specify on my own from cada728b5dbb4c985e3136876074a5ffbf020535 and building it from HEAD with that commit cherry-picked - all worked without any problems
(tested on Ubuntu)
Was there further discussion on this that I missed? I'm using the build Max referenced and there still isn't a geography tree being created (when created using the Wizard).
Use the latest build. It uses the 6.8.00 authority file.
Geography tree loads with the latest build. Does this look right? Names aren't the shortest they could be but I'm not sure what we decided on.

I don't know why, but it is working fine for me with the built I referenced earlier

I will try to update that file again, though this time by hand, which hopefully would fix the issue
As far as I know no version based on the updates from last fall works on windows or macs. We are reverting to the 6.8.00 geonames.
@asommerville20 can you please test it again with this build? https://github.com/specify/specify6/actions/runs/1005898566
Looks good on my end, short names are working.