# Terrain ranking datasets

Data behind the terrain ranking pages. Each dataset is a JSON file (`{ meta, records }`) with a CSV copy of its records. `meta` holds
the title, the scope the ranking applies to, the method, sources with their licences and credit text, resolution, date, code commit and
known limits.

## Licence

Every file is published under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Credit: Oyster List (oysterlist.com). Each
file's `meta.sources` lists every source with its licence and credit line; keep those credits when you reuse the data. The values
are computed by Oyster List from those sources; they are not copies of the source data. The files are provided as is, without
warranty of any kind (see CC BY 4.0, section 5).

No OpenStreetMap data and no data from the countries-states-cities database is used anywhere in these files. No file holds a
database id, a slug or a GHSL area name: the build refuses to write one.

## Files

| File | Title | Scope |
|---|---|---|
| `us-states.json` | Terrain of the states of the United States: flattest and most mountainous | United States |
| `us-state-high-points.json` | Highest point in each state of the United States | United States |
| `countries.json` | Terrain of the countries of the world: flattest and most mountainous | World |
| `us-cities.json` | Highest cities in the United States | United States |
| `world-cities.json` | Highest cities in the world | World |
| `capitals.json` | Highest capital cities in the world | World |
| `below-sea-level.json` | Cities below sea level worldwide | World |

Each JSON file has a CSV copy of its records. The places left out of a ranking are listed in that file's `meta.excluded`, with the reason.

Datasets about one country's regions are named after the country (`us-states.json`, scope United States), so the same pattern can
later cover other countries' regions.

## Elevation layers

Each point is read from the best terrain model for the place:

| Where | Source | Read at | Counts as below sea level when |
|---|---|---|---|
| United States and Puerto Rico | [Terrain Tiles on AWS Open Data](https://registry.opendata.aws/terrain-tiles/) (Terrarium encoding), which carry the USGS 3D Elevation Program there | zoom 13 (ranges: zoom 12, extremes re-read at zoom 13) | the value is below 0 m |
| Countries with an open national lidar model (Netherlands, Denmark, Great Britain, Norway, Sweden, Finland, Austria, Spain, Portugal, Czechia, Slovenia, Luxembourg, Latvia, Cyprus, Iceland, New Zealand, Australia) | Mapterhorn terrain tiles, each credited to its national source in `meta.sources` | zoom 13 | the value is below 0 m |
| Everywhere else, or where a Mapterhorn tile does not exist | GEDTM30 v1.2 at 30 m (OpenGeoHub Foundation, CC BY 4.0) | 30 m | the value plus its own stated uncertainty is below 0 m |
| Built-up area ranges outside the United States | GEDTM30 v1.2 at 30 m | cells about 120 m wide | not used |
| Country statistics (every country, the United States too) | GEDTM30 v1.2 at 240 m (Zenodo record 18887460) | averaged to about 480 m | not used |
| US state statistics | Terrain Tiles | zoom 9 (extremes re-read at zoom 12) | not used |

The footer of every page names the exact GEDTM30 file, its ETag (or, for the Zenodo file, its MD5 and DOI) and the retrieval date.
An input of GEDTM30 is Copernicus DEM GLO-30, whose notice every GEDTM30 page carries.

Only licences compatible with CC BY 4.0 are used for national lidar (CC0, CC BY 4.0 and OGL v3); the countries left out are Germany, France, Belgium, Switzerland,
Poland, Romania, Estonia, Slovakia, Canada, Taiwan, Rwanda, Italy, Japan and Israel. Those use GEDTM30 until someone checks their
licence terms. Only sources on that whitelist are credited and used: a tile from any other source is read from GEDTM30 instead.

## Computed and surveyed figures are kept apart

`meta.valueKind` says which a dataset holds. `us-state-high-points.json` is the only surveyed dataset. Everything else is
computed from elevation data. A computed "highest grid cell" (`gridMaxM`) is not a summit height and never appears next to a
surveyed one in the same file. Show the surveyed height for named summits.

## Method, in plain words

**State high points (surveyed).** Ten states have researched values (Alabama, Alaska, Hawaii, Indiana, Kentucky, Minnesota, Rhode
Island, South Carolina, Virginia, Washington), each with its source, method, datum and survey date. Examples: Mount Rainier 14,406 ft (the rock on the Southwest Rim; agencies have not yet adopted
a figure, and the older 14,410–14,411 ft is noted), Mauna Kea 13,803 ft (4,207 m) above local mean sea level.

For the others the height is chosen in this order: (1) an NGS survey mark on the top whose height comes from levelling or GPS
observations; (2) otherwise the figure already converted to NAVD 88, which is either an NGS mark at the top with an older height
NGS converted, or the USGS published summit height (NGVD 29) converted with NGS's VERTCON 3.0; (3) otherwise the highest ground in
the USGS 3DEP lidar terrain model within about 200 m of the summit. Lidar reads about 1–2 ft low on rock tops, so a lidar maximum
never lowers a figure (Mount Elbert stays 14,440 ft and Mount Whitney 14,505 ft). A lidar figure replaces the chosen one only when
it is more than 1 m higher, which means the highest ground is not at the mapped summit point; Connecticut, the District of Columbia,
Delaware and Maryland keep the chosen figure, because the higher ground nearby may be across a state line or man-made.
`highPointUncertain` marks heights where lidar and the figure used differ by more than 3 m, or where the sources conflict. Kentucky
(Black Mountain, 4,139 ft by lidar against 4,145 ft in older tables) is the only state marked uncertain; it stays so until a ground
survey. Each record keeps its datum, method kind, source ID and survey date for the NAPGD2022 conversion expected in 2027.

**States and countries.** The place is cut into square cells of equal area: 500 m cells for states (1 km for Alaska), 1 km for
countries (2 km for the largest). A cell belongs to the place when its centre lies inside the Natural Earth outline, used as drawn.
Cells touching a neighbouring state or country are dropped, so land across the border cannot leak in. Cells on the coast below 0 m
are taken as sea and dropped. Bad pixels are replaced by the median of their neighbours. For countries, the lowest cell is replaced
by the median of its eight neighbours when it is more than 300 m below it, and the highest cell only when it is above 8,849 m or
more than 1,000 m above its highest neighbour, so one bad pixel cannot be a country's extreme. The highest and lowest cells of a
state are re-read from finer tiles.

- **Mean, median, standard deviation:** over all cells, so they are weighted by area.
- **Countries:** the 197 sovereign states listed by Wikidata (the 193 UN member states, Vatican City and Palestine as UN observer
  states, Kosovo and Taiwan as partially recognised) are ranked, among those with at least 1,000 cells. Every other place Wikidata
  lists, with the state it belongs to, is in the file without a rank; places too small to measure have no figures. Northern Cyprus and
  Western Sahara have no state they belong to and show "Disputed". Names, capitals and boundaries shown do not imply any opinion on the
  legal status of any country, territory or area or of its authorities, or on its borders.
- **Ranks:** equal values share a rank, and the pages show it as "=1".
- **Range:** highest cell minus lowest cell.
- **Flatness index:** the share of the land within 50 m above or below the place's median height. 1 means all of it.
- **Mean slope (ruggedness):** the average ground slope in degrees, measured over 500 m (states) or 1 km (countries).
- **Share above 500, 1,000 and 2,000 m:** shares of land area.

**US cities.** A city is an incorporated place with at least 100,000 people in the US Census Bureau's Vintage 2025 estimates. Its
centre point is the place's coordinate on Wikidata, found through the Census place code (FIPS); where Wikidata has none, the Census
internal point of the city limits is used and the row is marked. The lowest and highest ground inside the city limits is read from
the Census cartographic boundary of the place (zoom 12 cells, extremes re-read at zoom 13).

**World cities (built-up areas).** A city is a continuous built-up area of 500,000 or more people in 2025 from the European
Commission's Global Human Settlement Layer (GHSL, product GHS-WUP-MTUC R2025A). Each area is matched to a Wikidata city item inside
it, which gives the name and the centre point.
`builtUpPopulation2025` is the population of the whole built-up area, not of the city's administrative limits. Where an area
includes other places with their own entry in Wikidata (a separate city such as El Alto beside La Paz, or a district of the same
city), they are listed in `parts` with their own centre elevation and the page names them. Areas with no Wikidata city item stay out
of the ranking and are listed in `meta.excluded` with the reason. So are areas whose population figure cannot be right for their size:
those GHSL's own check rates low (`Plausibility` 0: independent population and land-use estimates are under 25% or over 4 times the
figure; GHSL documentation, section 2.6.4) and any area with more than 50,000 people per km² of its outline (`builtUpAreaKm2`).
They are listed with the reason "The source's population figure is implausible for an area this size". GHSL area names are used
only to match Wikidata items and are not published; `ghslId` is.

**Lowest and highest ground in a city or built-up area.** Cells reading below -450 m (-440 m in the Dead Sea basin) are bad
readings and left out. Water is left out of the lowest ground: a cell more than 10 m below sea level (5 m for GEDTM30) is taken as
the bed of a river, bay or lake, and so is every cell below sea level joined to it by flood fill from those cells. A city whose own
centre is below sea level, or one inside a known depression (the Caspian shore, the
Dead Sea and Jordan Valley, the Salton Trough, Death Valley, the Turpan, Qattara, Danakil, Netherlands and Fayum lowlands), keeps its
low ground, except that a cell well below that depression's lowest land (a harbour, canal or lake bed) is left out
and the row is marked. For any other coastal city a lowest ground that still reads below sea level is shown as 0 m, with the note
"The city reaches the sea; lower readings are channels and creek beds".

**Capitals.** One row for each official capital of a sovereign state, from the capital statements Wikidata held on the data date.
A statement Wikidata marks deprecated or that has an end date is dropped (Tel Aviv, The Hague, Nusantara). A state with more than
one capital has a row for each, with its role (La Paz is Bolivia's seat of government, Sucre its constitutional capital). The
capitals of territories are listed apart without a rank. Each capital's point is its Wikidata coordinate; points more than 25 km
from the CIA World Factbook's were checked one by one (by Claude; a person has not reviewed them). Where a country is claimed by two states, the row names both ("A / B") with
"Status disputed"; Jerusalem reads "Israel / Palestine".

**Towns below sea level.** GeoNames populated places (cities5000 file, dump of 2026-10-21) with at least 10,000 people, whose
centre lies below sea level by the rule above. Points on water are left out and listed with the reason. Arerti (Ethiopia) and
Shalkar (Kazakhstan) are excluded because their GeoNames records are in the wrong place. The Fayum depression is treated as a known
depression. A town that the world cities or capitals list also has (same name and country, points within 30 km) and reads at or above
sea level there, at its Wikidata city-centre point, carries the note "Measured at the town point; other rankings use the city-centre
point, which is higher" (Baku: -18.9 m at its GeoNames point, +7.5 m at its Wikidata centre).

**Quoted elevations.** The city and capital files carry a second elevation beside ours: the figure a published source gives, with
its address in the same row. The column is filled only where a published source was found; elsewhere it is empty. Of the 322 places researched (the top 25 of each
city ranking and every capital), 68 have a figure, each read by Claude from a source with a URL; a person has not reviewed them.
Not used as sources: ebsco.com (its site asks not to be used by AI tools), Wikipedia and sites copied from it, elevation-map,
airport and weather sites, and Encyclopedia.com "Cities of the World". Where no researched figure exists, a Wikidata elevation is
used only when the statement cites a real source and lies within 200 m of ours. A row is marked when ours and the quoted figure
differ by more than 50 m, or by more than 25% when the gap is over 2 m. Where a source gives both metres and feet and the two
disagree by more than 5% (Ljubljana: "298 m (623 ft)"), only the metres are published; the source's text stays in
`referenceAsPublished`. Figures from The World Factbook link to a public copy of the Factbook text (the factbook.json project on
GitHub), and the row says so. A check against the 2021 GNIS archive of US places
is used during the build and never published.

## Sources and licences

- Elevation: Terrain Tiles on AWS Open Data (USGS 3DEP in the United States, public domain). Credit: "Terrain Tiles (Mapzen/Tilezen)
  on AWS Open Data; United States heights from the USGS 3D Elevation Program, courtesy of the U.S. Geological Survey."
- Elevation: GEDTM30 v1.2, Ho, Y.-F., Hengl, T. et al., OpenGeoHub Foundation (CC BY 4.0), with the Copernicus DEM GLO-30 notice
  ("produced using Copernicus WorldDEM-30 © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under
  COPERNICUS by the European Union and ESA; all rights reserved").
- Elevation: national lidar via Mapterhorn (mapterhorn.com): the sources listed in each file's `meta.sources`, each with its own
  licence and credit line, limited to the whitelist above.
- Identities, names, coordinates, capitals, sovereign status and referenced elevations: [Wikidata](https://www.wikidata.org/) (CC0 1.0).
- Built-up areas and their populations: GHS-WUP-MTUC R2025A v1.1, Schiavina, Alessandrini, Melchiorri, Dijkstra, European
  Commission Joint Research Centre (CC BY 4.0).
- US places: US Census Bureau Vintage 2025 estimates, 2025 Gazetteer and 2025 cartographic boundary files (public domain).
  Credit: "Source: U.S. Census Bureau."
- Towns: [GeoNames](https://www.geonames.org/) cities5000 (CC BY 4.0).
- Outlines: [Natural Earth](https://www.naturalearthdata.com/) 1:10m admin-1 states and provinces, v5.1.0 (public domain). Credit:
  "Made with Natural Earth."
- Surveyed state high points: [NGS datasheets and Data Explorer](https://geodesy.noaa.gov/NGSDataExplorer/), NGS
  [NCAT/VERTCON 3.0](https://geodesy.noaa.gov/NCAT/), USGS [Elevations and Distances in the United States](https://pubs.usgs.gov/gip/Elevations-Distances/elvadist.html)
  and the USGS 2015 Denali survey (public domain), and the Mount Rainier survey of 2025 (cited as facts).
- Capital cross-check: The World Factbook (CIA), from a public copy of its text (the factbook.json project on GitHub, commit 144d6977;
  public domain).

Each file carries the exact credit text of every source it used.

## Limits

Each file's `meta.limits` lists its own. The main ones:

- Grid figures depend on resolution. A 500 m or 1 km cell sits well below a sharp summit, and slope at that scale is much gentler than
  on the ground. The figures rank places consistently, but they are not survey values.
- The lowest cell can be the floor of a bay, estuary or lake inside an outline (`gridMinMayBeWaterFloor`).
- GEDTM30 is a modelled estimate: its error is about 2 to 3 m in built-up areas and larger in forest and high mountains.
- National datums differ from the global geoid model (EGM2008) by a few decimetres, so national and global figures can differ by that
  much.
- City and capital elevations are at one point, which is not an official elevation; the quoted column shows what the source publishes.
- GHSL areas merge neighbouring municipalities; the population is that of the whole area, and the world list names the best-known
  city and lists the others in the row (El Alto, higher than La Paz, is named on La Paz's row).
- Wikidata points are city centres chosen by editors, not survey marks.
- GeoNames populations have no stated date.
- Puerto Rico is not covered by the Census city estimates and is not in the US city list.
- Japan, Germany, France and other countries without a checked national licence use GEDTM30.
- State high points are on NAVD 88; the NAPGD2022 datum is expected in 2027.
