# upn-triedy: the land-use classes of the 2024 territorial plan and where its text names them

One record per class of the legend of sheet č. 2 („Komplexný výkres priestorového usporiadania a funkčného využitia
územia“): 26 classes, each with its regulation block and the page of the binding part whose chapter of B.2
names it in its heading. The plan draws a class as a colour and sets its rules by regulation block, so the page is
the block's chapter, which also lists the block's uses (`upn-bloky`, joined by `blok`). Every area of `upn-plochy`
names its class in `trieda`.

## Provenance

- The 2024 plan's clean copy (čistopis), approved by uzn. MsZ 106/2024, binding part declared by VZN 9/2024, in
  force since 14 Oct 2024; the town's page: <https://www.senec.sk/uzemne-planovanie/uzemny-plan-mesta-senec/>.
  Processor ÚPn s.r.o. („© 2024 ÚPn s.r.o.“ on each sheet).
- The files are pinned by SHA-256 in `sources/upd/vykresy.csv` (`scripts/fetch_upd_vykresy.py`); the legends are
  read into `sources/upd/legenda-2024.csv` (`scripts/build_upn_legenda.py`).
- Built by `scripts/build_upn_mapa.py`; the method and its tests: `research/uzemny-plan-mapa-2026-11-04.md`.
- **Not binding.** A reading of the drawings at 1:10 000. The binding text is VZN 9/2024 with its annexes; for a
  parcel, the town's „územnoplánovacia informácia“
  (<https://www.senec.sk/samosprava/uzemne-planovanie/uzemnoplanovacia-informacia/>).
- The classes: the legend of sheet č. 2 (`sources/upd/legenda-2024.csv`, `scripts/build_upn_legenda.py`), named as
  in `upn-plochy`. Each class's block: `BLOCKS` in `scripts/build_upn_mapa.py`, which the build checks against the
  binding part's own words, below.
- The binding part and VZN 9/2024 are read by `scripts/upn_zavazna.py`.

## Method

- Where the plan prints a rule (since 9 Nov 2026): `scripts/upn_zavazna.py` reads the binding part and VZN 9/2024
  with `pdftotext -layout`, each PDF on its own, and finds every page by what the page prints: a block's chapter
  of B.2 by its „Označenie regulačného bloku“, its row of Tabuľka č. 1 by the code in the table's first column,
  between the line „Tabuľka č. 1“ and the heading of B.1.2. The chapter of a passage is the last heading above
  it on the page (Úvod, B.1, B.1.1, …). Both files are checked against their pins first.
- VZN 9/2024 (Článok 2 ods. 1 písm. a)) makes the binding part its annex no. 1 and prints it after three pages of
  its own, with the binding part's page numbers at the foot: its PDF page 25 is printed „22“. A `#page=` link opens
  the PDF's page. In the binding part the two are the same; the build checks that every page it records prints
  its own number there, and the same number in the VZN.
- The pages say where the plan prints a rule. They don't say what the rule means for a plot (the town's
  územnoplánovacia informácia does).
- A class's page is its block's chapter of B.2. The build reports a problem (and `--check` exits 1) unless the
  chapter's heading names the class and the binding part's list of blocks in its Úvod names it under the same
  codes (`uvod_strana`). A name counts when each of its words begins a word of the text with all but its last
  two letters, at least three, as Slovak inflects them: „pole“ in „POLIA“, „les“ in „LESOV“, „zeleň dopravných
  koridorov“ in „ZELENE DOPRAVNÝCH KORIDOROV“. The block comes from `BLOCKS`; the two tests confirm it and never
  choose it, which matters for a short name: „pole“ also begins „POĽNOHOSPODÁRSTVA“, „sad“ „SADOVNÍCKYMI“.
- Some blocks name more than one class: d (dopravná vybavenosť, zeleň dopravných koridorov), e (les, krajinná zeleň, vodná plocha), k (pole, vinica, sad).

## Checks of this build

- 26 classes, every class of `upn-plochy`; each has its page, and both its block's heading and the Úvod
  name it.
- In VZN 9/2024, the chapter of block b5, b5*, b5** starts on page 29 and ends on page 30.

| Class | Block | B.2 page | Úvod page | VZN page |
| --- | --- | --- | --- | --- |
| Hromadná bytová výstavba | b1 | 22 | 4 | 25 |
| Individuálna bytová výstavba | b2 b2* | 23 | 4 | 26 |
| Bývanie, služby a drobné prevádzky | b3 | 24 | 4 | 27 |
| Rekreačné bývanie a šport | b4 | 25 | 4 | 28 |
| Polyfunkcia bývanie a občianska vybavenosť | b5 b5* b5** | 26 | 4 | 29 |
| Občianska vybavenosť | o | 27 | 4 | 30 |
| Zmiešané územie obchodu, služieb a výroby | ov | 28 | 4 | 31 |
| Šport a rekreácia | š | 29 | 4 | 32 |
| Priemysel | p1 | 30 | 4 | 33 |
| Poľnohospodárstvo | p2 | 31 | 4 | 34 |
| Sklady, logistika | s | 32 | 4 | 35 |
| Ťažba štrkopieskov | ť | 33 | 4 | 36 |
| Skládka odpadu | so | 34 | 4 | 37 |
| Dopravná vybavenosť | d | 35 | 5 | 38 |
| Technická vybavenosť energetika | t1 | 36 | 5 | 39 |
| Technická vybavenosť vodné hospodárstvo | t2 | 37 | 5 | 40 |
| Cintorín | c | 38 | 5 | 41 |
| Park (zeleň so sadovníckymi a lesoparkovými úpravami) | z | 39 | 5 | 42 |
| Zeleň dopravných koridorov | d | 35 | 5 | 38 |
| Záhrada (záhradková oblasť) | zo | 40 | 5 | 43 |
| Les | e | 41 | 5 | 44 |
| Krajinná zeleň | e | 41 | 5 | 44 |
| Vodná plocha | e | 41 | 5 | 44 |
| Pole | k | 42 | 5 | 45 |
| Vinica | k | 42 | 5 | 45 |
| Sad | k | 42 | 5 | 45 |

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id`, `trieda` | string | The class's slug, as `upn-plochy` writes it in `trieda`. Stable. |
| `trieda_nazov` | string | The class's name in the legend (sentence case). |
| `blok` | string | Its regulation block's codes, as `upn-plochy` and `upn-bloky` write them (`b2 b2*`). |
| `text_strana`, `text_odkaz` | integer, string | The binding part's page with the block's chapter of B.2, whose heading names the class, and its reference („B.2, regulačný blok e“). |
| `uvod_strana` | integer | The binding part's page whose list of blocks (Úvod) names the class under the block's codes. |
| `vzn_strana` | integer | The chapter's page in the PDF of VZN 9/2024. |
| `source_url` | string | The binding part's PDF at `text_strana`. |
| `vzn_url` | string | The PDF of VZN 9/2024 at `vzn_strana`. |
| `last_update` | string | The day the record's content last changed. |

## License

Published by Som Senec without a licence of its own (Podmienky zdroja): https://somsenec.sk/data#podmienky-zdroja. The records are an extract from a source that states no licence; the README above names it and each record links to it. Credit that source and "Som Senec, somsenec.sk", and keep to the source's terms.
