# upn-bloky: the regulation blocks of the 2024 territorial plan

One record per regulation block („regulačný blok“) of the binding part: 21 blocks, each with the limits
Tabuľka č. 1 sets for the existing town (B.1.1) and the uses B.2 allows in it. Every area of `upn-plochy` names its
block in `blok`, and so does every block outline of sheet č. 3 (`upn-bloky-plochy`); the development localities (`upn-lokality`) carry limits of their own, from Tabuľka č. 2.

## 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 text: `data/atlas/uzemny-plan.json`, `regulativy_stabilizovane_uzemie` and `funkcne_vyuzitie_blokov`, read
  from the binding part by `scripts/build_uzemny_plan.py`.

## Method

- A block of Tabuľka č. 1 is joined to its „podmienky funkčného využitia plôch“ by its codes (`b2 b2*`).
- The name is the heading of the block's page. Two headings run over two lines (blocks d and e), and their second
  line is read from the page; block e's page misprints „STABIILITY“, written here „stability“.
- The variants of a block (b2 and b2*, b5, b5* and b5**) share a record: the table prints them in one row. Where its
  cells differ by variant, they are kept in the table's order: `max_podlaznost_bd_pd_np` of b5 is „3 3 2“, for b5,
  b5* and b5**. Sheet č. 3 marks the variant of each block: `upn-bloky-plochy` (`kod`), joined here by `blok`.
- A cell the table prints as „--“ (none) is null. An asterisk points to the binding part's chapters B.1.3 and B.1.4,
  as in the table.
- `source_url` opens the binding part at the block's page of B.2; `zdroj_limitov_url` at the page with its row of
  Tabuľka č. 1. Until 9 Nov 2026 the B.2 pages were typed by hand (checked on 5 Nov 2026) and `zdroj_limitov_url`
  opened page 7 for every block, though the table's rows run over pages 7 to 9.
- 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).
- `text_varianty`: every page where the binding part prints one of the block's variants (`b2*`, `b5*`, `b5**`),
  under its chapter: the Úvod's list of blocks, B.1, B.1.1 (its text and the variant's row of Tabuľka č. 1) and
  the block's chapter of B.2. Only text pages: sheet č. 3, also the VZN's annex 2e (its last page), marks the
  variants on the map with asterisks drawn as shapes, not as text.

## Checks of this build

- 21 blocks; each has its chapter of B.2 and its row of Tabuľka č. 1 in both PDFs.
- Pages naming a variant in the binding part: 15 (by page and chapter), each found in VZN 9/2024 too.
- In VZN 9/2024, the chapter of block b5, b5*, b5** starts on page 29 and ends on page 30.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | The block's first code (`b2`, `š`). Stable. |
| `blok` | string | The codes as `upn-plochy` writes them (`b2 b2*`). |
| `bloky` | array | Each code. In the CSV, separated by „ \| “. |
| `nazov`, `funkcia` | string or null | The block's name (sentence case) and the function the table names. |
| `max_index_zastavanosti_pct`, `min_koeficient_zelene_pct`, `max_vyska_zastavby_m`, `max_podlaznost_bd_pd_np`, `max_podlaznost_rd_red_np`, `min_velkost_pozemku_m2`, `ine_regulativy` | string or null | The limits as Tabuľka č. 1 prints them (`30*`, `9/20*`). |
| `popis` | string or null | What the areas are for, as B.2 says it. |
| `podiel_prevladajuce`, `podiel_pripustne`, `podiel_pripustne_obmedzene` | string or null | The share of each kind of use, as printed („min 60 %“). |
| `prevladajuce`, `pripustne`, `pripustne_obmedzene`, `nepripustne` | array | The uses B.2 lists as prevailing, allowed, allowed with limits, and not allowed. In the CSV, separated by „ \| “. |
| `text_strana`, `text_odkaz` | integer, string | The binding part's page with the block's chapter of B.2, and its reference („B.2, regulačný blok b2, b2*“, the codes as the page prints them). |
| `tabulka_strana`, `tabulka_odkaz` | integer, string | The binding part's page with the block's row of Tabuľka č. 1 (7 to 9), and „B.1.1, Tabuľka č. 1“. |
| `vzn_strana`, `vzn_tabulka_strana` | integer | The same two pages in the PDF of VZN 9/2024, each found in its own text; the page prints the binding part's page number at its foot. |
| `text_varianty` | array | Each page that prints one of the block's variants: `{kod, strana, odkaz, url, vzn_strana, vzn_url}`, `strana` in the binding part. Empty for a block without variants. In the CSV, „b2*: s. 7 (B.1.1)“ for each, separated by „ \| “. |
| `source_url` | string | The binding part's PDF at `text_strana`. |
| `zdroj_limitov_url` | string | The binding part's PDF at `tabulka_strana`. |
| `vzn_url`, `vzn_tabulka_url` | string | The PDF of VZN 9/2024 at `vzn_strana` and `vzn_tabulka_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.
