OpenDataVisualizer/docs/datasets/gemeindegrenzen.md
Claudio Schaad 6a6b3a88c5 Add dataset docs, source credits and run script (#4)
- docs/datasets.md: overview of all sources with Mermaid diagrams, plus
  one page per dataset in docs/datasets/ (source, licence, fetch,
  refresh, cache, flowchart)
- CLAUDE.md: mandatory rule to keep the dataset docs up to date
- Map footers credit title, publisher and licence link of every source
  as required by CC BY 4.0, plus swisstopo and the processing applied
- run.ps1 builds the client and starts the server

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-11-09 18:17:33 +00:00

30 lines
1.3 KiB
Markdown

# Gemeindegrenzen
[← Übersicht](../datasets.md)
| | |
|---|---|
| Datensatz | swissBOUNDARIES3D Gemeindegrenzen (`ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill`) |
| Quelle | [api3.geo.admin.ch](https://api3.geo.admin.ch/) |
| Herausgeber | Bundesamt für Landestopografie swisstopo |
| Lizenz | Open Government Data (BGDI), Quellenangabe «© swisstopo» |
| Inhalt | Umriss pro Gemeinde (BFS-Nummer) in WGS84, auf 5 Dezimalstellen gerundet |
| Verwendet in | Karte `/fahrzeuge/thurgau` (Choroplethen-Karte) |
| Abruf | `MapServer/ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill/{BFS}` pro Gemeinde |
| Aktualisierung | nur für Gemeinden des Fahrzeugbestands ohne gespeicherten Umriss; alle neu, wenn `OutlinesFileName` in `VehicleCacheStorage` erhöht wird |
| Cache | `{DataPath}/vehicles/thurgau/outlines-v1.json` |
| Code | `Schaad.OpenData.Vehicles` (`MunicipalityBoundaryClient`, `VehicleRefresher`) |
## Ablauf
```mermaid
flowchart LR
A[(stock.json)] --> B{"Gemeinde ohne<br/>Umriss?"}
B -- ja --> C["swissBOUNDARIES3D<br/>…gemeinde-flaeche.fill/{BFS}"]
C --> D["WGS84, 5 Dezimalstellen"] --> E[("outlines-v1.json")]
B -- nein --> F[Cache behalten]
```
## Hinweise
- Gemeindefusionen erscheinen als neue BFS-Nummer im Fahrzeugbestand; deren Umriss wird beim nächsten Abruf automatisch geholt.