@rembish/iso-topojson 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # iso-topojson
2
2
 
3
- Public-domain TopoJSON world map with **247 polygons** keyed by [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
3
+ Public-domain TopoJSON world map with **250 polygons** keyed by [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
4
4
 
5
5
  No existing open-source solution covers this cleanly — `world-atlas` merges overseas territories into their sovereign states and uses ISO numeric codes, not alpha-2.
6
6
 
@@ -21,10 +21,10 @@ https://unpkg.com/@rembish/iso-topojson/iso-a2-markers.json
21
21
 
22
22
  | File | Size | Description |
23
23
  |------|------|-------------|
24
- | `iso-a2.json` | 203 KB | Full-detail TopoJSON, 247 polygon features |
24
+ | `iso-a2.json` | 204 KB | Full-detail TopoJSON, 250 polygon features |
25
25
  | `iso-a2-markers.json` | 246 KB | Compact variant: tiny territories (< 500 km²) replaced with Point markers |
26
26
 
27
- In `iso-a2-markers.json` the ~50 smallest territories (Maldives, Malta, Liechtenstein, most Caribbean islands, etc.) appear as `Point` geometries with `"marker": true` in their properties. Bouvet Island, Heard Island, and US Minor Outlying Islands are point markers in this variant only — they are omitted from the full file. All other features share the same properties schema.
27
+ In `iso-a2-markers.json` the ~50 smallest territories (Maldives, Malta, Liechtenstein, most Caribbean islands, etc.) appear as `Point` geometries with `"marker": true` in their properties. All features share the same properties schema.
28
28
 
29
29
  ## Usage
30
30
 
@@ -103,7 +103,7 @@ svg.selectAll("circle")
103
103
 
104
104
  ## Coverage
105
105
 
106
- All 249 ISO 3166-1 alpha-2 entries with a meaningful geographic polygon are included, plus Kosovo (`XK`, quasi-ISO). Overseas territories, Crown dependencies, and special administrative regions are **separate polygons**, not merged into their sovereign state:
106
+ All 250 entries (249 ISO 3166-1 alpha-2 + Kosovo `XK` quasi-ISO) are included as polygons. Overseas territories, Crown dependencies, and special administrative regions are **separate polygons**, not merged into their sovereign state:
107
107
 
108
108
  - French overseas departments and territories (GF, GP, MQ, RE, YT, PM, BL, MF, NC, PF, TF, WF)
109
109
  - British Overseas Territories (AI, BM, FK, GI, GG, GS, IO, IM, JE, KY, MS, SH, TC, VG)
@@ -131,7 +131,7 @@ Full pipeline:
131
131
  1. **venv** — creates `.venv` and installs Python dependencies
132
132
  2. **check** — lint (`ruff`, `black`), type-check (`mypy`), tests (`pytest`, ≥ 80% coverage)
133
133
  3. **download** — fetches Natural Earth 10m shapefiles
134
- 4. **build** — assembles 247 GeoJSON features via direct matches, subunit extractions, admin-1 merges, island bbox extractions, and disputed-area overlays → `output/merged.geojson`
134
+ 4. **build** — assembles 250 GeoJSON features via direct matches, subunit extractions, admin-1 merges, island bbox extractions, and disputed-area overlays → `output/merged.geojson`
135
135
  5. **simplify** — runs `mapshaper` at **3% vertex retention** → `output/iso-a2.json` (203 KB)
136
136
  6. **markers** — replaces polygons < 500 km² with centroid point markers → `output/iso-a2-markers.json` (246 KB)
137
137
  7. **validate** — checks all expected codes are present and valid