Administrative levels¶
Definitions¶
| Level | Meaning |
|---|---|
| ADM0 | The outline of the country or body |
| ADM1 | First-level divisions |
| ADM2 | Second-level divisions |
| ADM3 | Third-level divisions |
| ADM4 | Fourth-level divisions — published only where the upstream source puts the municipal tier there (Guadeloupe, Martinique, Belgium, Italy) |
| ADM5 | Fifth-level divisions — France's communes, which geoBoundaries places below the cantons |
These follow the semantics used by geoBoundaries and GADM, so datasets from this project can be cross-referenced against them without a translation step.
Level numbers are structural, not semantic¶
This is the rule that causes the most confusion, so it is worth stating
plainly: ADM1 does not mean "province". It means "whatever the first level
of subdivision is in this country". The local term is recorded separately, as
adm1_term and municipal_term in pipeline/src/wgj/tables/countries.json —
not in the manifests.
| Country | ADM1 | ADM2 | ADM3 |
|---|---|---|---|
| Chile | Región | Provincia | Comuna |
| Argentina | Provincia | Departamento | Municipio |
| France | Région | Département | Commune |
| United States | State | County | — |
| Japan | Prefecture | Municipality | — |
Chile is a useful illustration of why the numbering has to be structural. Communes are the tier everyone actually works with — they are the unit for census data, elections and local government — but they are ADM3, not ADM2, because a provincia tier sits between them and the regions. Numbering them ADM2 because they are the more prominent tier would make Chile's levels disagree with every other country's, and would break any cross-country query that groups by level.
When a country's tiers do not map cleanly
They frequently do not. Some countries have overlapping hierarchies,
special-status cities that skip a level, or divisions that changed
recently. Record what the upstream source models, describe the mismatch in
the manifest's notes field, and do not silently reshape the hierarchy to
make it look tidy.
The municipal tier¶
This project publishes three things per country: the outline (ADM0), the first-level divisions (ADM1), and the municipal tier — the level of local government people actually live in — plus, where the source has them under an open licence, the intermediate levels between the two (see below).
The municipal tier is a semantic target, not a level number, and its number varies:
| Country | Municipal tier | Level |
|---|---|---|
| Chile | Comuna | ADM3 |
| Mexico | Municipio | ADM2 |
| Brazil | Município | ADM2 |
| United States | County | ADM2 |
| Bolivia | Municipio | ADM3 |
| Haiti | Commune | ADM3 |
| Costa Rica | Cantón | ADM2 |
| Guadeloupe, Martinique | Commune | ADM4 |
| Germany | Kreis (district) | ADM3 |
| Spain | Municipio | ADM3 |
| Italy | Comune | ADM4 |
| France | Commune | ADM5 |
Because it cannot be inferred from the data, the mapping is curated by hand in
pipeline/src/wgj/tables/countries.json and is the one piece of this pipeline
that will always need human judgement.
Deeper levels — Panama's corregimientos, Costa Rica's distritos — are out of scope. They exist in few countries, the file sizes grow sharply, and almost nobody needs them.
Intermediate levels¶
Between ADM1 and the municipal tier many countries have one or two more
tiers: France's départements and arrondissements, Italy's regioni and
province, Czechia's okresy. Since v1.4.0 they are published wherever
geoBoundaries has them under a permissive licence. Which levels are built, and
what they are called, is listed per country as intermediate_levels in
pipeline/src/wgj/tables/countries.json.
- One whole-country file per level (
ITA_ADM3.geojson), never split: the largest has a few hundred units. - Every feature points at its ADM1, not at the intermediate level above
it: geoBoundaries ships no parent reference, so the parent is derived by the
same largest-overlap join as the municipal tier. The municipal tier also
keeps ADM1 as its parent — an Italian comune's
parentIDis its macro-region, not its province. - Levels under a copyleft or non-commercial licence (France's cantons, Spain's provinces, Poland's powiaty…) are not published.
The municipal level is split into one file per ADM1 parent wherever an ADM1 exists. Forty territories have a municipal tier but no ADM1 here (mostly because their geoBoundaries ADM1 is copyleft), so they ship a single whole-country file instead; see File & folder naming.
Coverage expectations¶
- ADM0 and ADM1 are the priority. They are the levels most consumers need and the ones most reliably available under an open licence.
- The municipal tier where an openly licensed source exists.
- Intermediate levels where the same source has them openly licensed.
A country entry with only ADM1 is welcome. Partial coverage is normal and the catalog shows exactly which levels exist for each entry.
Level numbers are not consistent between sources either
geoBoundaries' ADM numbering is assigned per country and does not always match the official hierarchy — it publishes Guadeloupe at ADM4 only, Puerto Rico with no ADM0 or ADM1, and Martinique at ADM3 and ADM4 with nothing in between. Never assume ADM2 means the same thing in two countries.
Nesting must be consistent¶
Where multiple levels are provided for one country:
- Every ADM2 feature must nest inside exactly one ADM1 feature.
- The union of ADM1 features should equal the ADM0 outline, within the tolerance of the source geometry.
- Features must carry a reference to their parent, and they do,
everywhere (intermediate levels and the municipal tier point at ADM1):
parentID— the parent's featureid— andparentISOon every feature that has a parent level in the catalog, andadm1ISOon every feature below an ADM1. For geoBoundaries data the parent is derived by a largest-overlap spatial join, because the upstream ships no parent reference; the 12 units that overlap no parent are kept withadm1ISO: "unassigned"and noparentID. CI checks that everyparentIDresolves — see Property schema.
Do not mix vintages. Boundaries change: a 2019 ADM1 file combined with a 2024
ADM2 file will not nest, and the mismatch is difficult to detect visually.
Record the vintage in the manifest (src_year).
Chile, level by level¶
Chile is the one country with the full ladder, and it is worth knowing exactly what is there:
| Level | File | Contents | Source |
|---|---|---|---|
| ADM0 | CHL_ADM0.geojson |
Country outline | Natural Earth 10m |
| ADM1 | CHL_ADM1.geojson |
16 regions | IDE Chile / SUBDERE DPA 2023 |
| ADM2 | CHL_ADM2.geojson |
56 provinces | IDE Chile / SUBDERE DPA 2023 |
| ADM3 | CHL_ADM3.geojson + ADM3/ (16 parts) |
345 communes | IDE Chile / SUBDERE DPA 2023 |
- 345 of 346 communes. Only Antártica (
12202) is absent: the DPA package excludes Chile's Antarctic claim, so this is an upstream choice, not a processing loss. Isla de Pascua and Juan Fernández are present. - The provincial tier exists as drawable geometry, not just as a property on
each commune — each commune's
parentISOpoints at its province'sshapeISO, and itsparentIDat the province'sid(CHL:ADM2:014for Camiña).
The legacy root files (BCN, 343 communes, no provinces) are the older dataset this replaces; see Versioning & stability.