portolan-pipeline
Curated world city points that join to the countries Collection on
ADM0_A3. Join by attribute, never spatially. 113 of the 1,251 points,
Istanbul, Montevideo, and Geneva among them, fall outside their own
country's generalized 1:110m polygon because coastal simplification
pushes them offshore.
Query the GeoParquet data asset in place with DuckDB spatial, read_parquet('natural-earth-populated-places.parquet'), or load it with GeoPandas. It streams over HTTP range requests, so query the published URL directly rather than downloading first. For a quick preview use the thumbnail asset.
SSD here but SDS in the countries file. Remap one
side before joining, or Juba, Malakal, and Wau drop out.geom.EPSG:4326, WGS 84, a geographic coordinate reference system whose coordinates are in degrees.
Planar distance functions return degrees, which are not ground units and vary with latitude. For real distances use a sphere or spheroid function, or transform to a projected CRS first.
The data asset carries the same code as proj:code.
The same CRS as the countries Collection, so the two overlay and join
without a transform. Nearest-neighbour work wants
ST_Distance_Sphere, which needs geometry_always_xy set first, as
the query below does.
Capitals per continent, with the country join done correctly.
Nearest city to a point, distance in kilometres.
reference/natural-earth-countries is the polygon companion, same
producer and vintage family, joined on ADM0_A3 with the South Sudan
remap. Converted from the upstream zipped Shapefile with DuckDB spatial
into web-optimized GeoParquet 2.0.