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 isunassigned. 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.jsontakes anintermediate_levelsmap (level → local term) for the tiers between ADM1 and the municipal tier.wgj fetchandwgj buildtake them;wgj build --intermediatebuilds 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.jsonlists their terms asterms.adm2/adm3/adm4.
Changed¶
- The
geoworldclients (Python and JavaScript) default to data1.3.0. This ships with the nextpython-v*andjs-v*tags; until then, passversion="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.jsonrepairs ten double-encoded New Zealand names (Ōtorohanga,Kaipātiki…).
Fixed — pipeline¶
wgj buildno longer leaves an empty directory behind for a territory it produced nothing for (Tokelau), whichwgj manifestthen 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 isTWN. 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.jsoncorrects upstreamshapeNamevalues, asshapeiso_fixes.jsondoes codes: China's Guangdong and Ningxia, and Macao's unnamed county-level unit.
Added — pipeline¶
wgj finalizecuts polygons that cross the antimeridian at 180° (wgj.antimeridian, pure Python), andwgj validatefails 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.0failed after the assets were built:ls -la dist | headunderpipefailaborts the step once there are more assets thanheadreads. The listing is complete now. - A failed or premature release can be re-published: dispatch the workflow on
mainwith the tag. The data comes from the tag; the steps and the release notes frommain, 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.jsonfor 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, rejectsBundlerwith"module": "CommonJS", andnpm run buildfailed onmain.
Fixed — pipeline¶
- A country whose first
wgj buildfails no longer leaves a half-built directory behind, which--skip-existingused to take for finished.
Changed¶
- The
geoworldclients (Python and JavaScript) default to data1.1.0. This ships with the nextpython-v*andjs-v*tags; until then, passversion="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
gbOpenfirst-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'sKOSunit, 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) andODC-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
geoworldclients, the pipeline) for France's 35,010 communes, published as 13 region parts plusunassigned— 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 carriesESPand 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 fromreleaseData/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 toGB_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 validatewarns, instead of the build stopping. - A first-level
shapeISOequal 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 withremove();sourceSpec,collection,fitToBounds,whenStyleReady,setFeatureStateandclearFeatureState. The source data carriesproperties.idwithpromoteId: "id", so MapLibre feature state works with the stable World GeoJSON ids.geoworld-leaflet(packages/js/geoworld-leaflet, npm):withLeaflet(L)→bounds,boundariesandaddBoundaries(anL.GeoJSONwithfitfrom the index bbox);layerById,toLatLngBounds,collection. Leaflet is handed in, never imported.geoworld-react(packages/js/geoworld-react, npm):GeoWorldProvideranduseIndex,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 (
geoworldand the framework are peers), ship ESM, CommonJS and types, and are tested withnode:testagainst fakes.examples/has a page per adapter (just examples). - The JavaScript packages now share one version (
0.2.0); thejs-vX.Y.Ztag 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, featureid, 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
CODEOWNERSso review requests reach the maintainer.
Removed¶
- The
scripts/*.pycompatibility 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 ispipeline/mkdocs_hook.py.
Changed¶
geoworld(npm) is 0.2.0 with no API change, to move in lockstep with the adapters. The rootpackage.jsonnow requires Node ≥ 20, as the packages already did.
Added — client libraries¶
geoworldfor Python (packages/python/geoworld, PyPI): a thin client with zero dependencies.GeoWorld("1.0.0")readsdata/index.jsonat a pinned data release, downloads files on demand, caches them under the platform cache directory and verifies everysha256against the index;get,get_part,iter_parts,preview,find,parent,children,search,url,bboxand, with thegeopandasextra,to_geopandas.geoworldfor JavaScript/TypeScript (packages/js/geoworld, npm): the same API,async, ESM and CommonJS, zero dependencies, onfetchand Web Crypto (Node ≥ 20, browsers).geoworld/nodeadds 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(tagpython-vX.Y.Z, PyPI trusted publishing) andpublish-js.yml(tagjs-vX.Y.Z, npm with provenance), and ajs-clientjob inci.yml(Node 20 and 22). - Documentation: Client libraries, Python, JavaScript.
Added — pipeline package¶
- The
wgjcommand. The pipeline is now an installable Python package,wgjunderpipeline/—pip install -r requirements-dev.txt, orpip install -e ./pipeline[pipeline]on its own — with one subcommand per step:wgj fetch,wgj build,wgj finalize,wgj previews,wgj manifest,wgj indexandwgj validate, each with--help;python -m wgjis 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 theirindex.json. The test suite runs on them (pytestfrom 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/*.pyare now ten-line compatibility shims that call into the package. They stay for one release and retire in Phase 4 of the Roadmap; writewgjfrom now on.scripts/make_previews.mjsis removed:wgj previews(Python) generates the previews, still running mapshaper through Node, andnpm run previewsnow calls it.- The registries moved into the package:
pipeline/src/wgj/tables/holdscountries.json,shapeiso_fixes.json,id_overrides.jsonandiso3166_2.json, formerly underscripts/. - The MkDocs catalog hook is
pipeline/mkdocs_hook.py, which re-exportswgj.catalog; building the docs needs nothing beyondrequirements-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_bytesanddata/index.jsonfollow. 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 --checkand awgj 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 withwgj previewsand 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
aptstep 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
idon every one of the 16,195 features,{ISO3}:{LEVEL}:{key}, unique across the repository: the realshapeISOwhen 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 inscripts/id_overrides.json(empty today). - Hierarchy fields everywhere they apply:
adm1ISOon every feature below ADM1 when the country has one, combined files included (13,181 features);parentISOandparentID— the parent'sid— 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 byscripts/build_index.py.- JSON Schemas in
schemas/(draft 2020-12) for the manifest, the index, a feature, its properties and the country registry, published athttps://andresgmg.github.io/World-GeoJSON/schemas/. The licence allow-list is now the manifest schema'slicenseenum, andfetch_sources.pymaps upstream licence text onto the same ids. scripts/finalize_geojson.py, the pipeline step that writes the ids, the hierarchy, theshapeISOcorrections, the bbox and the canonical file layout (one feature per line, compact, 6 decimals; a no-op when re-run).build_data.pyruns it itself;--checkverifies committed data in CI.- Release workflow: pushing a tag
vX.Y.Zpublishes a GitHub Release withworld-geojson-vX.Y.Z-{ISO3}.zipper territory,world-geojson-vX.Y.Z-all.zip,index.jsonandSHA256SUMS, with the matching section of this changelog as its notes. CITATION.cffat the repository root.build_data.py --resplit, which re-derives parents and split parts from the committed files after ashapeISOcorrection, 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; everyparentIDresolves; in-filebboxequals the coordinates; manifest feature counts equal the files;--checksumsre-hashes every file. CI also runsfinalize_geojson.py --checkandbuild_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:
shapeISOno 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_idkeeps the upstream id.- Three upstream codes corrected from
scripts/shapeiso_fixes.json— South DakotaSU-SD→US-SD, Ciudad de MéxicoMX-MEX→MX-CMX, CotopaxiEC-H→EC-X— and Belize's ADM2 codes cleared, since they repeated the district's.shapeISOis now unique within every level where it is non-empty. - The split parts follow the corrected codes:
USA/ADM2/SU-SD.geojsonis nowUS-SD.geojson(66 counties);MEX/ADM2/MX-CMX.geojson(16 alcaldías) andECU/ADM2/EC-X.geojson(7 cantons) are new, andMX-MEX.geojson(now 125 municipios) andEC-H.geojson(now 10 cantons) shrank accordingly. - Every full-resolution file and preview was rewritten in the canonical
layout, so the
bytesandsha256of every file, and every manifest, changed. Geometry is unchanged.
Fixed — data contract v1¶
- The in-file
bboxof 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.tomlwithruff,mypyandpytestconfiguration, and atests/suite for the pipeline scripts.justfile,.pre-commit-config.yamland.editorconfig.- CI workflow
ci.ymlrunning lint and tests on every pull request;validate-datanow also runs on pushes tomain.
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.pydownloaded the 297 MB Chile archive for every scope, not only when Chile was requested, and extracted it even under--dry-run.build_data.pyexited 0 after failures.validate_data.py --helpran 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.pymissed a changed preview when the new file had the same size as the old one.make_previews.mjsprocessed 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, whereadm1ISOandparentISOexist;shapeIDandshapeNameEnnever did), the real manifest fields, the split rules and unsplit territories, Chile's four levels, the knownshapeISOissues, 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.jsonand installed locally rather than resolved throughnpxon 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 curatedscripts/countries.jsonrecording 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 anysource.licenseoutside the permissive allow-list.- Interactive preview maps, served from the docs site itself so they work under
mkdocs serveand 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.
gbOpenis a container of per-file licences and 33% of its Americas entries are copyleft.contributing/sources.mdwas wrong and has been corrected. - Natural Earth is now the designated source for country outlines.
Deprecated¶
regiones.geojson,comunas.geojsonand their.jsonduplicates 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 frommanifest.jsonsidecars. - CI workflow building the site with
--stricton pull requests and deploying to GitHub Pages onmain.
Fixed¶
.gitattributesnow pins*.geojsonto LF line endings. Previously* text=autocaused 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 orraw.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.