# seveso: establishments under the Seveso III act in okres Senec

One record per establishment („podnik“) that SAŽP's register lists under zákon 128/2015 Z. z. o prevencii závažných
priemyselných havárií in okres Senec: 5 on 26 Oct 2026, 4 of them in the town. Built by `scripts/fetch_seveso.py`.

**Not on the map and not in its filters** (the publisher's decision of 26 Oct 2026). The site may show these records
only through a link from an article. The no-hazard rule of 13 Oct 2026 applies: the record is a legal status from an
official register („podnik podľa zákona 128/2015, kategória A/B“), never a risk zone or a radius.

## Rebuild

```bash
python scripts/fetch_seveso.py              # one WFS request
python scripts/fetch_seveso.py --offline    # from the cached response in data/atlas/raw/seveso/ (not committed)
```

## Files

| File | Content |
|---|---|
| `seveso.json` | a list of records, the town's first, then by name |
| `seveso.csv` | the same records, one row each, same columns. UTF-8, CRLF, empty = null |

## Source

SAŽP (Slovenská agentúra životného prostredia), INSPIRE layer „INSPIRE PD 39,01 Lokalizácia podnikov SEVESO III“,
WFS https://geos.sazp.sk/geoserver/inspire_priods__seveso/seveso_inspire_pd__podnik/wfs, licence CC0 (as listed in
the national open data catalogue). One GetFeature request filtered to okres Senec (`OKRESCISLOLSUJ1='SK0108'`).
Each record's `source_url` is the register's own page for the establishment,
`https://app.sazp.sk/SevesoPublic/PodnikDetail.aspx?Id_podnik=<sazp_code>` (since 27 Oct 2026; before, the WFS filtered
to the code, which returned the site's outline). That page also hosts the operator's information for the public, and it
names the people who run the establishment, with their phones and e-mails: link it, copy nothing from it. To get one
establishment's record from the service, filter the same WFS by `KODPODNIKSAZP=<sazp_code>`.

The operators' own pages for the public come from `sources/seveso/informacie.csv`, filled by hand: each link is checked
to be the operator's own page for that establishment or its Slovak company, never a group's global site; an empty row
says what was searched.

## Fields

- `record_id`: `sazp-` and the register's own code (`KODPODNIKSAZP`). Stable.
- `sazp_code`, `name`, `address`, `municipality`, `municipality_code` (LAU2), `okres` as the register prints them;
  runs of spaces collapsed.
- `in_town`: true when `municipality_code` is Senec's (`SK0108508217`).
- `category`: `A` or `B`, as § 3 of the act defines them. Category A: dangerous substances present at or above the
  thresholds of the second column of annex 1, below those of the third. Category B: at or above the third column.
  The act as in force since 1 Apr 2025: https://static.slov-lex.sk/static/SK/ZZ/2015/128/20250401.html
- `operator`, `operator_ico`, `operator_legal_form`: the operating company. Every operator in okres Senec is a
  company; the script stops if the register ever names a natural person, so a person decides.
- `activity`: the establishment's SK NACE subclass, code and label as printed.
- `supervising_office`: the district office's environment department the register names.
- `boundary_date`: the date the register's outline of the site was drawn (local date of `DATUMHRANICAAREALU`).
- `public_info_url`: the operator's own web page with the information for the public that § 15 ods. 2 of the act
  requires; null when none was found (4 of 5 on 27 Oct 2026). `public_info_checked`: the day it was looked for.
- `source_url` (the register's page), `licence`, `last_update` (the day the record last changed).
- No point and no outline (since 27 Oct 2026, the publisher's decision): the raw cache keeps the register's points, the
  published file doesn't.

## Caveats

- The register says where an establishment is and its category. It says nothing about risk, distances or what a
  resident should do. Under § 15 of the act the operator publishes its information for the public on its own website,
  and an operator of a category B establishment informs the people who could be affected at least every five years;
  those pages are linked (`public_info_url`), not harvested.
- The register's points (in the raw cache only) sit inside the site's outline, not at a door. Category and operator can change; `last_update`
  moves when they do.

## License

Published by Som Senec under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. You may use it for any purpose, commercial use included, if you credit "Som Senec, somsenec.sk". The source documents that each record links to keep their own terms.
