{"id":20354728,"url":"https://github.com/datasets/geo-countries","last_synced_at":"2025-05-15T13:06:33.913Z","repository":{"id":38428440,"uuid":"51749883","full_name":"datasets/geo-countries","owner":"datasets","description":"Country polygons as GeoJSON in a datapackage","archived":false,"fork":false,"pushed_at":"2025-04-10T09:34:43.000Z","size":11216,"stargazers_count":497,"open_issues_count":6,"forks_count":139,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-04-15T02:11:19.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://datahub.io/core/geo-countries","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datasets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-02-15T11:02:19.000Z","updated_at":"2025-04-13T23:19:20.000Z","dependencies_parsed_at":"2024-12-28T15:02:12.584Z","dependency_job_id":"15cae428-f4e0-4cc5-825e-25439eb84cb9","html_url":"https://github.com/datasets/geo-countries","commit_stats":{"total_commits":40,"total_committers":7,"mean_commits":5.714285714285714,"dds":"0.42500000000000004","last_synced_commit":"9b791e20d8a592cae759e23e5f1046cda2bfea6e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fgeo-countries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fgeo-countries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fgeo-countries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fgeo-countries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datasets","download_url":"https://codeload.github.com/datasets/geo-countries/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-14T23:09:30.108Z","updated_at":"2025-05-15T13:06:28.898Z","avatar_url":"https://github.com/datasets.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca className=\"gh-badge\" href=\"https://datahub.io/core/geo-countries\"\u003e\u003cimg src=\"https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg\u0026label\u0026scale=1.25\" alt=\"badge\" /\u003e\u003c/a\u003e\n\n## Description\n\nGeodata [data package][datapackage] providing geojson polygons for all the world's countries.\nPerfect for use in apps and visualizations.\n\n## Data\n\nThe data comes from [Natural Earth][naturalearth], a community effort to make visually pleasing, well-crafted maps with cartography or GIS software at small scale.\n\nMore info about countries can be obtained from datapackage https://github.com/datasets/country-codes by a join on field ISO3166-1-Alpha-3\n\n[naturalearth]: https://www.naturalearthdata.com/\n[datapackage]: https://datapackage.org/standard/data-package/\n\n## Preparation\n\nTo run the script and update the data:\n\n### Prerequisites\n\n1. Install required tools:\n   - [GDAL](https://gdal.org/en/latest/download.html) - for geographic data processing\n\n2. Verify GDAL installation:\n   ```bash\n   ogr2ogr --version\n   ```\n\n### Data Processing\n\nThe project uses `ogr2ogr` to convert Natural Earth's country boundaries from Shapefile to GeoJSON format, with the following features:\n- Coordinate precision set to 6 decimal places\n- Geometry validation enabled (`-makevalid`):\n  - Fixes self-intersecting polygons\n  - Corrects ring orientation\n  - Removes duplicate vertices\n  - Ensures geometric validity for better compatibility with GIS tools\n- Selected fields:\n  - `name`: Common name of the country (from admin field)\n  - `ISO3166-1-Alpha-2`: Two-letter ISO country code (from iso_a2 field)\n  - `ISO3166-1-Alpha-3`: Three-letter ISO country code (from iso_a3 field)\n\nTo process the data:\n  ```bash\n  make data\n  ```\n\nThis will:\n1. Download the Natural Earth countries dataset\n2. Convert it to GeoJSON format with the specified settings\n3. Save the result in `data/countries.geojson`\n\n## License\n\nAll data is licensed under the [Open Data Commons Public Domain Dedication and License][pddl]. \n\nNote that the original data from [Natural Earth][naturalearth] is public domain. While no credit is \nformally required a link back or credit to [Natural Earth][naturalearth], [Lexman][lexman] and the [Open Knowledge Foundation][okfn] is much appreciated.\n\nAll source code is licenced under the [MIT licence][mit].\n\n[mit]: https://opensource.org/licenses/MIT\n[naturalearth]: https://www.naturalearthdata.com/\n[pddl]: https://opendatacommons.org/licenses/pddl/1.0/\n[lexman]: https://github.com/lexman\n[okfn]: https://okfn.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fgeo-countries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatasets%2Fgeo-countries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fgeo-countries/lists"}