Scripts to initialise schemas and load data from genomes.org gazetteer data into a postgres database
- psql (only tested on version 14.9)
- geonames gazetteer files (see #Installation for details)
- Download the following gazetteer files from geonames to the repository root
- allCountries.zip
- alternateNamesV2.txt
- timeZones.txt
- iso-languagecodes.txt
- hierarchy.zip
- userTags.txt
- Extract the .zip files and move extracted files from any subfolders into the repository root
- Log in to psql and add the user "geonames" to your postgres cluster:
CREATE USER geonames;- Run the following commands:
# create database and define schemas
psql -f init.sql
# load gazetteer data into `geonames` schemas
./populate_database.sh