World map: Natural Earth 5.1.2 tiles and relief, Wikidata gazetteer
Browse files- .gitattributes +2 -0
- README.md +77 -0
- gazetteer.tsv.gz +3 -0
- relief.pmtiles +3 -0
- world.pmtiles +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
world.pmtiles filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
relief.pmtiles filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: public-domain-and-cc0-1.0
|
| 4 |
+
license_link: https://huggingface.co/datasets/Freonius/jerome-maps/blob/main/README.md#licences
|
| 5 |
+
viewer: false
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- maps
|
| 10 |
+
- gazetteer
|
| 11 |
+
- natural-earth
|
| 12 |
+
- wikidata
|
| 13 |
+
- jerome
|
| 14 |
+
pretty_name: Jerome's world map
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Jerome's world map
|
| 18 |
+
|
| 19 |
+
The world map of the Jerome writing app, which downloads these three files
|
| 20 |
+
once and shows the map offline: the countries, regions, rivers, lakes, towns,
|
| 21 |
+
major roads and railways of [Natural Earth](https://www.naturalearthdata.com/),
|
| 22 |
+
its shaded relief, and a place search over the settlements of
|
| 23 |
+
[Wikidata](https://www.wikidata.org/) with an English name. There are no
|
| 24 |
+
streets. Jerome pins each file by this repository's commit, its size and its
|
| 25 |
+
SHA-256.
|
| 26 |
+
|
| 27 |
+
| File | What it is |
|
| 28 |
+
| --- | --- |
|
| 29 |
+
| `world.pmtiles` | Natural Earth 5.1.2 as vector tiles (Mapbox Vector Tile 2, gzipped), zooms 0–7, in a [PMTiles](https://github.com/protomaps/PMTiles) v3 archive; 1:110m at zooms 0–1, 1:50m at 2–3, 1:10m from 4 |
|
| 30 |
+
| `relief.pmtiles` | Natural Earth's shaded relief (1:10m, the smaller size) as 256-pixel JPEG tiles, zooms 0–6, Web Mercator, in a PMTiles v3 archive |
|
| 31 |
+
| `gazetteer.tsv.gz` | About 1.3 million settlements from Wikidata with an English name and coordinates, each with its country, region and population, as gzipped tab-separated text sorted by a folded key (the format is in Jerome's `crates/maps/README.md`) |
|
| 32 |
+
|
| 33 |
+
## Layers of `world.pmtiles`
|
| 34 |
+
|
| 35 |
+
`rank` is a whole number, lower for the more important, from Natural Earth's
|
| 36 |
+
scale and label ranks. Names are English (Natural Earth's `NAME_EN`, else its
|
| 37 |
+
`NAME`). A feature appears from the zoom Natural Earth gives it; zoom 7 holds
|
| 38 |
+
them all.
|
| 39 |
+
|
| 40 |
+
| Layer | What | Properties | From zoom |
|
| 41 |
+
| --- | --- | --- | ---: |
|
| 42 |
+
| `water` | Oceans and seas | – | 0 |
|
| 43 |
+
| `land` | Land, islands included | – | 0 |
|
| 44 |
+
| `lakes` | Lakes and reservoirs | `name` | 0 |
|
| 45 |
+
| `urban` | Urban areas | – | 2 |
|
| 46 |
+
| `rivers` | Rivers and lake centre lines | `name`, `rank` | 0 |
|
| 47 |
+
| `regions` | Boundaries of first-level divisions (states, provinces, regions) | – | 2 |
|
| 48 |
+
| `countries` | Boundaries between countries on land: kind country, or disputed for any other line | `kind` | 0 |
|
| 49 |
+
| `roads` | Major roads: kind major (highways, beltways, expressways) or secondary; no ferries | `kind` | 3 |
|
| 50 |
+
| `railways` | Railways; no train ferries | – | 4 |
|
| 51 |
+
| `region_labels` | A point for each first-level division's name | `name`, `rank` | 2 |
|
| 52 |
+
| `country_labels` | A point for each country's name | `name`, `rank` | 0 |
|
| 53 |
+
| `places` | Cities and towns: capital 2 for a country's capital, 1 for a region's, else 0 | `name`, `rank`, `capital` | 0 |
|
| 54 |
+
|
| 55 |
+
## How it is made
|
| 56 |
+
|
| 57 |
+
Jerome's `scripts/build-world-map.ts` builds the three files from inputs
|
| 58 |
+
pinned, with their sizes and checksums, in Jerome's `sources.lock.json` and
|
| 59 |
+
mirrored in
|
| 60 |
+
[Freonius/jerome-sources](https://huggingface.co/datasets/Freonius/jerome-sources):
|
| 61 |
+
Natural Earth's GeoJSON from
|
| 62 |
+
[nvkelso/natural-earth-vector](https://github.com/nvkelso/natural-earth-vector)
|
| 63 |
+
at the release's commit, the shaded relief from naciscdn.org, and the answers
|
| 64 |
+
of [QLever](https://qlever.dev/wikidata)'s Wikidata endpoint to the queries in
|
| 65 |
+
Jerome's `packages/map-data/queries/`. The tiles are cut with
|
| 66 |
+
[geojson-vt](https://github.com/mapbox/geojson-vt) and encoded with
|
| 67 |
+
[vt-pbf](https://github.com/mapbox/vt-pbf); the archives and the relief are
|
| 68 |
+
written by Jerome's own `map-tool`.
|
| 69 |
+
|
| 70 |
+
## Licences
|
| 71 |
+
|
| 72 |
+
- **Natural Earth** vectors and rasters are in the public domain; no
|
| 73 |
+
permission is needed to use them. Made with Natural Earth. Free vector and
|
| 74 |
+
raster map data @ naturalearthdata.com.
|
| 75 |
+
- **Wikidata**'s data is available under
|
| 76 |
+
[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). Place names
|
| 77 |
+
from Wikidata.
|
gazetteer.tsv.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5fed2a748cb12aae5b9717f2bf2536a2537e144913b743833d4a3100c9cbedc
|
| 3 |
+
size 28555722
|
relief.pmtiles
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63166612ab64857d3b7163ccebfc8bb3bda8f2aef775787e23843cfb2556362e
|
| 3 |
+
size 19966449
|
world.pmtiles
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:614c3adb6400bfd199c2e82e68baf7b90e9f681fdf4d1d19e3fa635cbb28240f
|
| 3 |
+
size 18102628
|