{"id":21391530,"url":"https://github.com/primeeagle/powershell-geonamegrampsimport","last_synced_at":"2026-05-19T00:36:30.867Z","repository":{"id":237289687,"uuid":"794217192","full_name":"PrimeEagle/PowerShell-GeonameGrampsImport","owner":"PrimeEagle","description":"PowerShell and SQL scripts for importing Geonames place data into Gramps family tree software.","archived":false,"fork":false,"pushed_at":"2024-05-15T04:11:37.000Z","size":13712,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T13:27:48.045Z","etag":null,"topics":["csv","gramps","json","powershell","sql"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PrimeEagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-30T17:21:40.000Z","updated_at":"2024-08-14T07:01:42.000Z","dependencies_parsed_at":"2024-05-15T19:10:49.158Z","dependency_job_id":"765c201b-8a49-4a7d-b245-68d91a691a6a","html_url":"https://github.com/PrimeEagle/PowerShell-GeonameGrampsImport","commit_stats":null,"previous_names":["primeeagle/powershell-geonamegrampsimport"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PrimeEagle/PowerShell-GeonameGrampsImport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrimeEagle%2FPowerShell-GeonameGrampsImport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrimeEagle%2FPowerShell-GeonameGrampsImport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrimeEagle%2FPowerShell-GeonameGrampsImport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrimeEagle%2FPowerShell-GeonameGrampsImport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrimeEagle","download_url":"https://codeload.github.com/PrimeEagle/PowerShell-GeonameGrampsImport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrimeEagle%2FPowerShell-GeonameGrampsImport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33196186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","gramps","json","powershell","sql"],"created_at":"2024-11-22T13:33:52.965Z","updated_at":"2026-05-19T00:36:30.848Z","avatar_url":"https://github.com/PrimeEagle.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell-GeonameGrampsImport\nPowerShell and SQL scripts are used to import Geonames and place data into Gramps family tree software.\n\nThe workflow is Geonames CSV files -\u003e import into database -\u003e SQL scripts to process into new CSV files -\u003e PowerShell scripts to convert CSV data to JSON data -\u003e Import into Gramps using JSON Import/Export Add-on.\n\n\n## Step 1: Downloading or Updating Geonames Files\n```\ncd datafolder\n.\\Update-Geonames.ps1\n```\n\n\n## Step 2: Import into Database\nThe SQL scripts are written for SQL Server, but modifying them for other databases shouldn't be too difficult.\nRun them in this order. Note that the second one might take quite a while. It does a lot of preprocessing for the next step.\n```\nGeonamesSchema.sql\nGeonamesImport.sql\n```\n\n\n## Step 3: Export to CSV\n```\nsqlcmd -S servername\\instancename -d databasename -U username -P password -i GeonamesQuery.sql\n        -v CountryCode=\"us\" -v AdminLevel=\"1\" -o \"output.csv\" -s\",\" -W -u\n```\n\nFill in the server name, instance name, database name, username, password, country code, administrative regions level, and the output file name.\n\n\n## Step 4: Convert to Gramps JSON\n```\n.\\Import-Places.ps1 -csvPath csvFile -jsonPath inputJsonFile -jsonOutputPath outputJsonFile\n```\ncsvFile - the output file from Step 3\ninputJsonFile - an input JSON file to merge with. Either use the included blank.json, or a .json file exported from Gramps.\noutputJsonFile - the output JSON file, which consists of the csvFile merged with the inputJsonFile.\n\n\n## Step 5: Import into Gramps\nBefore proceeding, you will need the \"JSON Import\" addon installed in Gramps.\n\nOpen Gramps, go to the Family Trees menu, then click on \"Import...\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimeeagle%2Fpowershell-geonamegrampsimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimeeagle%2Fpowershell-geonamegrampsimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimeeagle%2Fpowershell-geonamegrampsimport/lists"}