Skip to content

Changelog

Format follows Keep a Changelog. Versioning follows Semantic Versioning as adapted for data in Versioning & stability.

Unreleased

Added — intermediate levels

  • 30 datasets, 2,197 features in 28 territories: the levels between ADM1 and the municipal tier, wherever geoBoundaries has them under a permissive licence. France's 96 départements (ADM2) and 320 arrondissements (ADM3), Italy's 20 regions (ADM2) and 107 provinces (ADM3), and the second level of Bangladesh, Bolivia, Bosnia and Herzegovina, Burkina Faso, Cambodia, Cameroon, Canada, the Central African Republic, Comoros, Czechia, Germany, Greece, Guinea, Madagascar, Mali, Myanmar, Niger, Papua New Guinea, Peru, the Philippines, Seychelles and South Africa, plus Algeria's 48 wilayas; the arrondissements (ADM3) of Belgium, Martinique and Réunion. The repository now holds 499 datasets and 99,381 features.
  • One whole-country file per level, never split. Every feature points at its ADM1 (adm1ISO, parentISO, parentID); one Cameroonian department overlaps no region and is unassigned. Municipal features are unchanged and keep ADM1 as their parent.
  • Left out for their licence (ODbL, CC BY-SA or unclear): France's cantons, Spain's provinces, and the intermediate levels of Austria, Switzerland, Poland, Hungary, Slovakia, Finland, Belgium (ADM2), Luxembourg, Haiti, Ethiopia and Sri Lanka.

Added — pipeline

  • Intermediate levels. countries.json takes an intermediate_levels map (level → local term) for the tiers between ADM1 and the municipal tier. wgj fetch and wgj build take them; wgj build --intermediate builds only them against the committed ADM1, leaving every other file untouched. Each is one whole-country file whose features point at their ADM1; the municipal tier keeps ADM1 as its parent. index.json lists their terms as terms.adm2/adm3/adm4.

Changed

  • The geoworld clients (Python and JavaScript) default to data 1.3.0. This ships with the next python-v* and js-v* tags; until then, pass version="1.3.0" / { version: "1.3.0" } to read Asia and Oceania.

[1.3.0] — 2026-12-02

Added — Oceania

  • 26 territories, 46 datasets, 1,391 features, bringing the repository to 243 territories, 469 datasets and 97,184 features: every UN M49 region. Six territories have both tiers; Niue and Nauru a first level only; six a municipal tier without an ADM1 above it; twelve the outline only. Christmas Island, the Cocos (Keeling) Islands and Tokelau ship nothing.
  • Fiji, Kiribati, New Zealand and the US Minor Outlying Islands cross the antimeridian; upstream already cut them at 180°.
  • name_fixes.json repairs ten double-encoded New Zealand names (Ōtorohanga, Kaipātiki…).

Fixed — pipeline

  • wgj build no longer leaves an empty directory behind for a territory it produced nothing for (Tokelau), which wgj manifest then turned into an invalid manifest.

Added — Asia

  • 51 territories, 106 datasets, 12,399 features, bringing the repository to 217 territories, 423 datasets and 95,793 features. Same sources and the same pinned geoBoundaries commit. Twenty territories have both tiers; India and Turkmenistan a first level only; Qatar's municipalities are its first level; twelve a municipal tier without an ADM1 above it; sixteen the outline only.
  • Cyprus is Natural Earth's Cyprus, Northern Cyprus and the UN buffer zone dissolved into one, and Kazakhstan includes Baikonur (NE_MERGE). Taiwan is TWN. Kashmir, Palestine, the Golan Heights, Abkhazia, South Ossetia and the South China Sea follow Natural Earth's default view; all are new cases in Disputed boundaries.
  • SG-ODL-1.0, the Singapore Open Data Licence, joins the allow-list.
  • name_fixes.json corrects upstream shapeName values, as shapeiso_fixes.json does codes: China's Guangdong and Ningxia, and Macao's unnamed county-level unit.

Added — pipeline

  • wgj finalize cuts polygons that cross the antimeridian at 180° (wgj.antimeridian, pure Python), and wgj validate fails on any longitude outside −180…180. No published file changes: every one was already cut upstream. This prepares Oceania (Fiji, Kiribati, Tuvalu, the Chathams).

Fixed — release workflow

  • Publishing v1.2.0 failed after the assets were built: ls -la dist | head under pipefail aborts the step once there are more assets than head reads. The listing is complete now.
  • A failed or premature release can be re-published: dispatch the workflow on main with the tag. The data comes from the tag; the steps and the release notes from main, so a changelog section written after the tag reaches the notes.

[1.2.0] — 2026-10-22

Added — Africa

  • 60 territories, 125 datasets, 7,934 features, bringing the repository to 166 territories, 317 datasets and 83,394 features. Same sources and the same pinned geoBoundaries commit; no licence was added to the allow-list.
  • Twenty countries have both tiers; Cameroon, Ethiopia, Kenya, Libya and Namibia a first level only; twenty-two a municipal tier without an ADM1 above it, Réunion and Mayotte among them without an outline (Natural Earth draws them inside France); thirteen the outline only.
  • Somalia is Natural Earth's Somalia and Somaliland dissolved into one outline (NE_MERGE), matching ISO 3166 and geoBoundaries' districts. Western Sahara follows Natural Earth's default view. Both, with Abyei, Halaib, Ilemi, Chagos, the Scattered Islands and Mayotte, are new cases in Disputed boundaries.
  • First-level ISO 3166-2 codes corrected in shapeiso_fixes.json for Côte d'Ivoire (none upstream), South Africa, Zimbabwe, the Central African Republic, Benin, Gambia and Sudan. When a fix clears a code, the municipal join now falls back to the unit's name instead of leaving its children unassigned.

Not included, and why. Twenty-nine countries have no first level here and eleven no municipal tier, because geoBoundaries has them under ODbL or CC-BY-SA. Namibia's constituencies are left out because seven of them carry the wrong name. See the Roadmap.

Upstream quirks worth knowing. Many tiers predate a reform (Burundi, Angola, Burkina Faso, Mali, the Central African Republic, Ethiopia, Sierra Leone, Namibia); those countries ship as review. Egypt has fourteen units named "Zemam Out" and two named "Suhag" beside one named "Suhag-2" (pinned in id_overrides.json). Madagascar's 1,579 communes have no first level above them, so 150 share a name and carry a numeric suffix in their id.

Fixed — JavaScript build

  • The CommonJS builds use "moduleResolution": "Node10" again: TypeScript 5.9, which the workspaces are pinned to, rejects Bundler with "module": "CommonJS", and npm run build failed on main.

Fixed — pipeline

  • A country whose first wgj build fails no longer leaves a half-built directory behind, which --skip-existing used to take for finished.

Changed

  • The geoworld clients (Python and JavaScript) default to data 1.1.0. This ships with the next python-v* and js-v* tags; until then, pass version="1.1.0" / { version: "1.1.0" } to read Europe.

[1.1.0] — 2026-10-21

Added — Europe

  • 51 territories, 97 datasets, 59,265 features, bringing the repository to 106 territories, 192 datasets and 75,460 features. Same sources as the Americas: Natural Earth outlines, geoBoundaries gbOpen first-level and municipal tiers under permissive licences only.
  • Seventeen countries have both tiers (Belgium, Bulgaria, Bosnia and Herzegovina, Belarus, Germany, Denmark, Spain, France, the United Kingdom, Greece, Ireland, Italy, North Macedonia, the Netherlands, Norway, Romania, Sweden); eight a first level only; Iceland, Luxembourg, Portugal and Ukraine a municipal tier without an ADM1 above it; twenty-two the outline only.
  • Kosovo is published as XKX, a user-assigned code, from Natural Earth's KOS unit, with the dispute stated in its manifest. Crimea, Gibraltar and Kosovo are new cases in Disputed boundaries.
  • Three attribution-only licences on the allow-list: OGL-UK-3.0 (United Kingdom), DL-DE-BY-2.0 (Germany) and ODC-By-1.0 (France's communes). ODbL stays out; the copyleft check no longer mistakes Open Data Commons Attribution for it.
  • ADM5 joins the data contract (schemas, both geoworld clients, the pipeline) for France's 35,010 communes, published as 13 region parts plus unassigned — the 129 overseas communes — with no combined file.
  • Spain's and Belgium's first level get their ISO 3166-2 codes from shapeiso_fixes.json: upstream, every Spanish unit carries ESP and the Belgian ones three-letter region codes.

Not included, and why. Nineteen countries have no first level here and seventeen no municipal tier, because geoBoundaries has them under ODbL, CC-BY-SA or swisstopo's own licence. Svalbard and Jan Mayen ships nothing: Natural Earth draws both inside Norway. Intermediate levels (France's départements, Italy's regions and provinces, Germany's government regions) are not built yet. See the Roadmap.

Upstream quirks worth knowing. Germany's coastal and lakeside districts come as a land and a water polygon under the same name; they are merged (dissolve_by_name in countries.json), giving 401 districts. Hungary's metadata counts 20 first-level units and the file has 19: Budapest is drawn inside Pest county. Italy's ADM1 is the five NUTS 1 macro-regions. Several municipal tiers predate a reform (Belgium 2018, Norway 2013, Ukraine 2006) — those countries ship as review.

Changed — pipeline

  • geoBoundaries is read from a pinned commit of its repository (wmgeolab/geoBoundaries@5c25134) instead of its API: the catalogue from releaseData/geoBoundariesOpen-meta.csv, the files through Git LFS media URLs. A rebuild fetches the same bytes; moving to a newer release is a one-line change to GB_REF.
  • A level too dense for a 2 MB preview even at the coarsest simplification now ships without one (Spain ADM3, France ADM5, Italy ADM4) and wgj validate warns, instead of the build stopping.
  • A first-level shapeISO equal to the country code is no longer used as the split key.

Added — framework adapters

  • geoworld-maplibre (packages/js/geoworld-maplibre, npm): addBoundaries(map, client, iso3, level, { part?, preview?, fill?, line?, before?, fit? }) adds a level as a GeoJSON source plus fill and line layers and returns a handle with remove(); sourceSpec, collection, fitToBounds, whenStyleReady, setFeatureState and clearFeatureState. The source data carries properties.id with promoteId: "id", so MapLibre feature state works with the stable World GeoJSON ids.
  • geoworld-leaflet (packages/js/geoworld-leaflet, npm): withLeaflet(L) → bounds, boundaries and addBoundaries (an L.GeoJSON with fit from the index bbox); layerById, toLatLngBounds, collection. Leaflet is handed in, never imported.
  • geoworld-react (packages/js/geoworld-react, npm): GeoWorldProvider and useIndex, useCountries, useCountry, useBoundaries, useFeature, useChildren, useResource, over a small keyed store (createStore, keys) that dedupes loads and renders cached data on the first pass.
  • All three have zero runtime dependencies (geoworld and the framework are peers), ship ESM, CommonJS and types, and are tested with node:test against fakes. examples/ has a page per adapter (just examples).
  • The JavaScript packages now share one version (0.2.0); the js-vX.Y.Z tag publishes all four, skipping any already on the registry.
  • Documentation: MapLibre, Leaflet, React.

Added — onboarding

  • Issue forms under .github/ISSUE_TEMPLATE/: New country or territory (source, SPDX licence from the allow-list, where the licence is stated, levels, vintage), Data problem (dataset path, feature id, data version, kind of problem, evidence) and Library bug (package, version, runtime, reproduction). Blank issues are off.
  • A pull request template with the checks CI runs, and CODEOWNERS so review requests reach the maintainer.

Removed

  • The scripts/*.py compatibility shims kept since the pipeline became a package (build_data.py, build_index.py, build_manifest.py, fetch_sources.py, finalize_geojson.py, gen_catalog.py, validate_data.py). wgj <command> is the only entry point; the MkDocs hook is pipeline/mkdocs_hook.py.

Changed

  • geoworld (npm) is 0.2.0 with no API change, to move in lockstep with the adapters. The root package.json now requires Node ≥ 20, as the packages already did.

Added — client libraries

  • geoworld for Python (packages/python/geoworld, PyPI): a thin client with zero dependencies. GeoWorld("1.0.0") reads data/index.json at a pinned data release, downloads files on demand, caches them under the platform cache directory and verifies every sha256 against the index; get, get_part, iter_parts, preview, find, parent, children, search, url, bbox and, with the geopandas extra, to_geopandas.
  • geoworld for JavaScript/TypeScript (packages/js/geoworld, npm): the same API, async, ESM and CommonJS, zero dependencies, on fetch and Web Crypto (Node ≥ 20, browsers). geoworld/node adds an on-disk cache with the same layout as the Python client's.
  • fixtures/expected/fixtures.json: a golden both clients must reproduce byte for byte, checked in CI, so the two cannot drift apart.
  • Workflows publish-python.yml (tag python-vX.Y.Z, PyPI trusted publishing) and publish-js.yml (tag js-vX.Y.Z, npm with provenance), and a js-client job in ci.yml (Node 20 and 22).
  • Documentation: Client libraries, Python, JavaScript.

Added — pipeline package

  • The wgj command. The pipeline is now an installable Python package, wgj under pipeline/ — pip install -r requirements-dev.txt, or pip install -e ./pipeline[pipeline] on its own — with one subcommand per step: wgj fetch, wgj build, wgj finalize, wgj previews, wgj manifest, wgj index and wgj validate, each with --help; python -m wgj is the same thing. Documented in Data pipeline.
  • wgj all CHL: build → previews → manifest → index → validate for the countries named, stopping at the first failure.
  • fixtures/data/: three small territories — Aruba, Barbados and a reduced Dominican Republic — with their index.json. The test suite runs on them (pytest from the repository root, no data checkout needed; WGJ_DATA=<dir> points the package at another tree), and the client libraries will use them later.

Changed

  • scripts/*.py are now ten-line compatibility shims that call into the package. They stay for one release and retire in Phase 4 of the Roadmap; write wgj from now on.
  • scripts/make_previews.mjs is removed: wgj previews (Python) generates the previews, still running mapshaper through Node, and npm run previews now calls it.
  • The registries moved into the package: pipeline/src/wgj/tables/ holds countries.json, shapeiso_fixes.json, id_overrides.json and iso3166_2.json, formerly under scripts/.
  • The MkDocs catalog hook is pipeline/mkdocs_hook.py, which re-exports wgj.catalog; building the docs needs nothing beyond requirements-docs.txt.
  • Every preview was regenerated once by the Python port. The bytes changed; geometry, properties and ids are identical, so a map drawn from a preview still joins to the full data. The manifests' preview_bytes and data/index.json follow. A patch-level data change: nothing changed in any full-resolution file.
  • CI: the data workflow runs wgj validate --checksums, wgj finalize --check data/earth/*/, wgj index --check and a wgj manifest data/earth/*/ regeneration that must leave no diff; the code workflow runs ruff, mypy and pytest on the fixtures, then regenerates the ABW, BRB and DOM previews with wgj previews and fails on any difference.

Removed

  • The documentation site no longer shows "last updated" stamps or renders social (Open Graph) preview cards. Together they cost GitPython, Cairo, Pillow, an apt step and a full-history clone on every docs build; the docs toolchain drops from 46 to about 30 packages and CI uses a shallow clone.

[1.0.0] — 2026-09-24

The first tagged release, cut from main once the data contract merges. Everything in this section ships in it: the contract, the engineering hygiene, the Americas, the pipeline and the documentation site.

Added — data contract v1

  • A stable Feature id on every one of the 16,195 features, {ISO3}:{LEVEL}:{key}, unique across the repository: the real shapeISO when there is one (CHL:ADM3:01402, USA:ADM1:US-SD), otherwise a name-based key (USA:ADM2:US-SD.davison, COL:ADM2:san-rafael), with a deterministic numeric suffix on name collisions. Manual keys can be pinned in scripts/id_overrides.json (empty today).
  • Hierarchy fields everywhere they apply: adm1ISO on every feature below ADM1 when the country has one, combined files included (13,181 features); parentISO and parentID — the parent's id — on every feature with a published parent level (16,063 features), in every country rather than only Chile.
  • data/index.json, the global index: every territory and dataset in one 340 KB file (39 KB gzipped), manifests embedded verbatim, no timestamp, so it is byte-deterministic. Generated by scripts/build_index.py.
  • JSON Schemas in schemas/ (draft 2020-12) for the manifest, the index, a feature, its properties and the country registry, published at https://andresgmg.github.io/World-GeoJSON/schemas/. The licence allow-list is now the manifest schema's license enum, and fetch_sources.py maps upstream licence text onto the same ids.
  • scripts/finalize_geojson.py, the pipeline step that writes the ids, the hierarchy, the shapeISO corrections, the bbox and the canonical file layout (one feature per line, compact, 6 decimals; a no-op when re-run). build_data.py runs it itself; --check verifies committed data in CI.
  • Release workflow: pushing a tag vX.Y.Z publishes a GitHub Release with world-geojson-vX.Y.Z-{ISO3}.zip per territory, world-geojson-vX.Y.Z-all.zip, index.json and SHA256SUMS, with the matching section of this changelog as its notes.
  • CITATION.cff at the repository root.
  • build_data.py --resplit, which re-derives parents and split parts from the committed files after a shapeISO correction, without a rebuild from source.
  • Validation upgrades in validate_data.py: JSON Schema validation of every manifest, the index, the registry and every feature of every full-resolution file; feature ids unique per file; every parentID resolves; in-file bbox equals the coordinates; manifest feature counts equal the files; --checksums re-hashes every file. CI also runs finalize_geojson.py --check and build_index.py --check.

Changed — breaking against the unreleased 0.x main

No tag existed, so nothing was pinned; code written against main should still know:

  • shapeISO no longer carries geoBoundaries' opaque id where the upstream has no code. It is "" on 15,364 features across 22 municipal datasets (14,797 ADM2, 501 ADM3, all 66 ADM4); src_shape_id keeps the upstream id.
  • Three upstream codes corrected from scripts/shapeiso_fixes.json — South Dakota SU-SD → US-SD, Ciudad de México MX-MEX → MX-CMX, Cotopaxi EC-H → EC-X — and Belize's ADM2 codes cleared, since they repeated the district's. shapeISO is now unique within every level where it is non-empty.
  • The split parts follow the corrected codes: USA/ADM2/SU-SD.geojson is now US-SD.geojson (66 counties); MEX/ADM2/MX-CMX.geojson (16 alcaldías) and ECU/ADM2/EC-X.geojson (7 cantons) are new, and MX-MEX.geojson (now 125 municipios) and EC-H.geojson (now 10 cantons) shrank accordingly.
  • Every full-resolution file and preview was rewritten in the canonical layout, so the bytes and sha256 of every file, and every manifest, changed. Geometry is unchanged.

Fixed — data contract v1

  • The in-file bbox of 13 files was the pre-simplification extent; it now equals the coordinates in every file, and CI checks it.
  • Previews now carry the feature id, so a map drawn from a preview joins to the full data.

Added — engineering hygiene

  • pyproject.toml with ruff, mypy and pytest configuration, and a tests/ suite for the pipeline scripts.
  • justfile, .pre-commit-config.yaml and .editorconfig.
  • CI workflow ci.yml running lint and tests on every pull request; validate-data now also runs on pushes to main.

Fixed — pipeline and site

  • The docs site lost its preview maps: the docs workflow's sparse checkout excluded the preview/ files the maps are served from.
  • fetch_sources.py downloaded the 297 MB Chile archive for every scope, not only when Chile was requested, and extracted it even under --dry-run.
  • build_data.py exited 0 after failures.
  • validate_data.py --help ran the whole validation instead of printing help, and checked the required properties on the first feature of each file only; it now checks every feature.
  • gen_catalog.py missed a changed preview when the new file had the same size as the old one.
  • make_previews.mjs processed its inputs in filesystem order, so output was not reproducible across platforms.

Docs

  • Every page under Reference and About brought in line with the data as shipped: the property set actually present (src_shape_id, where adm1ISO and parentISO exist; shapeID and shapeNameEn never did), the real manifest fields, the split rules and unsplit territories, Chile's four levels, the known shapeISO issues, and the platform roadmap.

Added — the Americas

  • 55 territories, 95 datasets, 16,195 features. Country outlines from Natural Earth 10m (public domain); first-level and municipal divisions from geoBoundaries gbOpen, permissive licences only; Chile from IDE Chile.
  • Municipal levels are split by first-level parent. The parent is derived by largest-overlap spatial join, because geoBoundaries carries no parent reference and frequently ships an empty shapeISO.
  • Each dataset records its own licence, upstream provider and vintage. A country-level licence would be a false claim: Brazil's outline is public domain, its states CC BY 2.5 and its municipalities CC BY 3.0 IGO.
  • mapshaper is pinned in package.json and installed locally rather than resolved through npx on every call.

Not included, and why. Fifteen countries have no first-level divisions because their geoBoundaries ADM1 is ODbL or CC-BY-SA. Bonaire/Sint Eustatius and Saba and Bouvet Island ship nothing at all. Jamaica's and Saint Lucia's ADM2 were left out as apparently mis-tiered — 827 units against 14 parishes, 547 against 10 quarters. See the Roadmap.

Upstream quirks worth knowing. geoBoundaries' admUnitCount metadata disagrees with the files it serves in several cases (Suriname reports 62 ADM2 units and ships 58); the counts here are what the files actually contain. Argentina's ADM1 omits the Autonomous City of Buenos Aires, so its 8 comunas overlap no province and are kept in an unassigned part rather than dropped. Ecuador and Peru each ship an ADM1 whose shapeISO contains an asterisk.

Added — data pipeline and Chile

  • Chile at data/earth/CHL/, from IDE Chile's División Política Administrativa 2023 under CC BY: 16 regions, 56 provinces and 345 communes. The provincial tier had no openly licensed source before now.
  • The municipal level is split by region into 16 files so no single file is unwieldy, plus a whole-country file where it fits under the CDN ceiling.
  • Ingestion pipeline: fetch_sources.py, build_data.py, build_manifest.py, make_previews.mjs, and a curated scripts/countries.json recording which ADM level is each country's municipal tier.
  • All geometry simplified to a 100 m ground tolerance, recorded per dataset in the manifest. A distance rather than a percentage, so the whole repository shares one real-world resolution.
  • validate-data.yml — checks manifests against a clean regeneration, verifies split parts sum to the level total, enforces size budgets, and rejects any source.license outside the permissive allow-list.
  • Interactive preview maps, served from the docs site itself so they work under mkdocs serve and during PR review rather than depending on CDN propagation.

Changed

  • Chile's source moved from BCN to IDE Chile DPA 2023. geoBoundaries was evaluated and rejected for Chile: its ADM2 is OpenStreetMap under ODbL, and its communes are a 2020 vintage.
  • geoBoundaries is no longer described as a CC BY 4.0 source. gbOpen is a container of per-file licences and 33% of its Americas entries are copyleft. contributing/sources.md was wrong and has been corrected.
  • Natural Earth is now the designated source for country outlines.

Deprecated

  • regiones.geojson, comunas.geojson and their .json duplicates remain at the repository root, unchanged, for one full major version. They are not byte-equivalent to their replacements — different source, schema and resolution.

Added — documentation site

  • Documentation site built with MkDocs and Material for MkDocs, deployed to GitHub Pages.
  • Written conventions for repository layout, administrative levels, property schema, coordinate reference systems and planetary bodies.
  • Approved-source list and licensing policy, including the explicit exclusion of GADM and the share-alike problem with OpenStreetMap.
  • Disputed-boundaries policy.
  • Code of conduct.
  • Catalog generator (scripts/gen_catalog.py) producing dataset pages from manifest.json sidecars.
  • CI workflow building the site with --strict on pull requests and deploying to GitHub Pages on main.

Fixed

  • .gitattributes now pins *.geojson to LF line endings. Previously * text=auto caused CRLF conversion on Windows checkout, making the working file 1.8 MB larger than the stored blob and producing checksums that could not match Linux CI or raw.githubusercontent.com.

Planned — breaking

The legacy root files are removed in the next major release. See Versioning & stability.


[0.2.0] — 2023

Added

  • comunas.geojson — 343 Chilean communes.
  • comunas.json — byte-identical duplicate.

[0.1.0] — 2023

Added

  • regiones.geojson — 16 Chilean regions.
  • regiones.json — byte-identical duplicate.
  • MIT licence.

Source for both: Biblioteca del Congreso Nacional de Chile (BCN) / IDE Chile.