datasets/geo-countries
소개
데이터 패키지에 담긴 GeoJSON 국가 폴리곤
기타 프로젝트측정된 스타 증가
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCountry Polygons as GeoJSON
GeoJSON polygons for the world's countries and for some territories, disputed areas and special areas, taken from Natural Earth. Each polygon carries the country name and its ISO 3166-1 alpha-2 and alpha-3 codes.
Column definitions and types are in datapackage.json.
Data
data/countries.geojson is one GeoJSON FeatureCollection. Each feature is one country or area, as a Polygon or MultiPolygon, with three properties:
| Property | Meaning |
|---|---|
name |
Common name of the country or area, for example Argentina or Kosovo |
ISO3166-1-Alpha-3 |
3-letter ISO 3166-1 country code, for example ARG. -99 where there is no ISO code |
ISO3166-1-Alpha-2 |
2-letter ISO 3166-1 country code, for example AR. -99 where there is no ISO code |
More information about each country is in the country-codes data package. Join it on ISO3166-1-Alpha-3.
Known limitations
- Natural Earth writes
-99where it has no ISO code in its main code fields. Two real countries are affected, France and Norway. The build fills them from Natural Earth's ownISO_A3_EHandISO_A2_EHfields (FRAandFR,NORandNO). - Some features still have
-99in both code fields. They are disputed or special areas that have no ISO 3166-1 code, for example Kosovo, Northern Cyprus, Somaliland, Siachen Glacier, Spratly Islands and Clipperton Island. - A join on
ISO3166-1-Alpha-3will not match those features.-99is also not a unique key: it appears on every one of them. - Natural Earth draws country boundaries according to their de facto status (see its disputed boundaries policy). They are not necessarily the borders that any one government claims.
- The outer rings of the polygons run clockwise. The build does not change ring direction. RFC 7946 asks for counter-clockwise rings, but most tools accept both.
- Coordinates have at most 6 decimal places.
Data sources
- Natural Earth, 10m Admin-0 Countries (download page): the polygons, the country name (its
adminfield) and the ISO codes (itsiso_a3,iso_a2,iso_a3_ehandiso_a2_ehfields). Licence: public domain under its terms of use.
Changes made to the source data: the 10m Admin-0 Countries file is converted to GeoJSON. Only the country name and the ISO 3166-1 alpha-2 and alpha-3 code fields are kept. For France and Norway, where Natural Earth has -99 in its main code fields, the codes are taken from its ISO_A2_EH and ISO_A3_EH fields. Invalid geometries are repaired and coordinates are rounded to 6 decimal places.
Not endorsed by, or affiliated with, Natural Earth.
Preparation
The build needs make, curl and GDAL (for ogr2ogr). To check that GDAL is installed:
ogr2ogr --version
To rebuild data/countries.geojson:
make data
This downloads the latest 10m Admin-0 Countries file that Natural Earth publishes (the version is not pinned) into ne_10m_admin_0_countries.zip, converts it with ogr2ogr and saves the result in data/countries.geojson. The conversion keeps the three properties above, rounds coordinates to 6 decimal places and repairs invalid geometries (-makevalid, for example self-intersecting polygons). If the zip file is already there, it is reused. Run make clean to delete it.
A GitHub Actions workflow runs make data on the 1st of every month (and on pushes to main and on manual runs), and commits data/countries.geojson if it changed.
License
The geometry and the three properties come from Natural Earth. Its terms of use put the data in the public domain and allow commercial use without permission or credit. We found nothing in the file that Natural Earth credits to another provider: the three properties are Natural Earth's country name and ISO code fields.
The maintainers offer this package under the Open Data Commons Public Domain Dedication and License (PDDL) 1.0. A credit is not required, but a link back to Natural Earth, Lexman and the Open Knowledge Foundation is appreciated. See ATTRIBUTION.txt.
All source code is licensed under the MIT licence.
관련 프로젝트 살펴보기
불러오는 중…