databank-basemaps / README.md
opt-sol's picture
Natural Earth (current)
3ec2e16 verified
|
Raw History Blame Contribute Delete
2.85 kB
metadata
license: other
pretty_name: Natural Earth
tags:
  - geometry
  - boundaries
  - basemap
  - global
configs:
  - config_name: ne_admin1
    data_files: ne_admin1_attrs.parquet
  - config_name: ne_countries
    data_files: ne_countries_attrs.parquet
license_name: public-domain
license_link: https://www.naturalearthdata.com/about/terms-of-use/

Natural Earth basemaps

Public-domain country and admin-1 boundaries, shared by every source in the data bank. Two tiers: exact/ is GeoParquet 1.0 at full precision for spatial work, display/ is simplified GeoJSON for maps.

Terms

Redistributed by OptimalSolution LLC -- see DISCLAIMER.md. Redistribution only: no responsibility for the content, no endorsement or position, no affiliation with the publisher, no warranty. What was changed from the published data is recorded per dataset under bank.modifications and bank.changes.

Read this before you aggregate

  • 110m covers only 175 of Ember's 209 countries. It omits Singapore, Malta, Bahrain, Hong Kong, Macao and 30 small island states, which render as holes. 50m is the default and 50m and 10m both reach 209/209.
  • Three adm0_a3 codes are aliased to ISO 3166-1: KOS to XKX, SDS to SSD, PSX to PSE. Without them an ISO3 join loses Kosovo, South Sudan and Palestine.
  • The four French overseas departments were lifted out of France's polygon and ERASED from it. Natural Earth folds them into FRA (636,062 km2 against 551,695 for metropolitan France), so anyone reporting them separately would otherwise count the same territory twice. FRA here is 548,374 km2.
  • Every layer is GEOS-valid. s2 validity is NOT guaranteed and cannot be: raw 110m already reports SDN and RUS as s2-invalid while GEOS accepts them, and repairing under s2 breaks RUS, FJI and ATA for GEOS. source.yml records the per-layer count.
  • display/ geometry is SIMPLIFIED -- its coordinates differ from the published data. Use it to draw, never to measure.
  • admin-1 is admin-1 AS NATURAL EARTH DEFINES IT. Unit counts are wildly uneven (GBR 232, SVN 193, LVA 119); this is not a uniform NUTS-like tier and units are not comparable across countries.

Using it

# exact tier: sfarrow drops the CRS, because GeoParquet 1.0 stores it as
# a PROJJSON object and sf::st_crs() takes only strings
x <- sfarrow::st_read_parquet("exact/ne_countries_50m.parquet")
if (is.na(sf::st_crs(x))) sf::st_crs(x) <- "OGC:CRS84"

# display tier: ECharts registerMap, joined on the `iso3` property
# geojson <- display/ne_countries_50m.geojson