@nspot/geo-pack-romania-uat
v1.1.1
Published
Region pack for @nspot/geo-engine: Romania's 3,181 UATs (municipii, orașe, comune) and București's six sectors, from ANCPI's boundaries, coded by SIRUTA. Builds on @nspot/geo-pack-romania.
Maintainers
Readme
@nspot/geo-pack-romania-uat
A geo-engine region pack: every administrative-territorial unit (UAT) of Romania, and București's six sectors.
What's in it
All regions are type admin and carry their SIRUTA code as code.
- 3,181 UATs (level 2), tagged with their rank: 103
municipiu, 216orasand 2,862comuna. The slug is the name plus the județ's ISO suffix, so names that repeat across județe stay apart, and a change of rank never changes a slug:bran-bv,brasov-bv,voluntari-if. Each UAT's parent is its județ in@nspot/geo-pack-romania. - Municipiul București as a UAT (
bucuresti-b, 179132), the union of its sectors: ANCPI publishes no polygon of its own for it. Its parent isbucuresti, the county-level region "București" in the Romania pack, which has the same outline; the two are kept apart on purpose, one a county, the other a municipality. Itsbuilt_fromproperty lists the sectors' codes. - 6 sectors (level 3, tag
sector), "Sectorul 1" to "Sectorul 6" (bucuresti-sector-1tobucuresti-sector-6), parented tobucuresti-b.
In 1.1.1 the București UAT is named "Municipiul București" (it was "București", like the county) and the sectors "Sectorul 1" to "Sectorul 6" (they were "Sector 1"…); slugs did not change.
Since 1.1.0:
- The 40 county seats (reședințe de județ) also carry the tag
resedinta-judet. București is a county of its own and Ilfov's seat lies outside it, so there are 40, not 42. - Every UAT has
population_2021in its properties: the resident population on 1 December 2021, from INS's census table 1.03.2 (Romania: 19,053,815). The sectors have none; the table gives București as a whole.
The boundaries are ANCPI's of 2025-03-24, simplified as one coverage at 50 m so that
neighbours still share one border and the units still tile the country: the median
border moves 47 m and no unit's area changes by more than 0.33%. Names and ranks are
SIRUTA's (first semester of 2026), in title case with comma-below diacritics (ș, ț).
How the layer is made and measured is in
packages/db/seed/RO/uat/README.md.
The country entry carries no outline, so installing this pack never overwrites Romania's. The pack is about 14 MB.
Installing it
It needs @nspot/geo-engine 0.3.0 or later (schema 7), which links parents across
packs. Install the Romania pack too; installing it first avoids a moment in which
România's outline is derived from these units.
npm i @nspot/geo-pack-romania @nspot/geo-pack-romania-uatimport { installPack } from "@nspot/geo-engine";
await installPack(pool, "@nspot/geo-pack-romania");
await installPack(pool, "@nspot/geo-pack-romania-uat");From @nspot/geo-pack-romania 2.0.0 its județe are unions of these units, so every UAT
nests in its județ exactly. With 1.x, whose județe come from OpenStreetMap, the borders do
not quite line up; parents are linked by slug, so that does not affect which UAT a point
is in.
Licence
The package's code and text are MIT (LICENSE); the boundaries, names and codes are
CC BY 4.0 (LICENSE-DATA). Wherever you show them, credit:
- © Agenția Națională de Cadastru și Publicitate Imobiliară (ANCPI), CC BY 4.0
- Institutul Național de Statistică, SIRUTA, CC BY 4.0
and say that the boundaries were simplified. For population_2021, cite INS as its reuse
terms ask:
- INS România, Recensământul populației și locuințelor 2021, www.insse.ro
