Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
geodata.bw-im.de
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
simple-geodata-selector
=======================

Online Version: http://opendatalab.de/projects/geojson-utilities/

Online Version: http://opendatalab.de/projects/geojson-utilities/ (Stand 31.12.2018)
Online Version: http://geodata.bw-im.de (Stand 31.12.2023)

Skripte für Datenkonvertierung
==============================
Expand All @@ -27,13 +27,13 @@ Siehe auch Verzeichnis converter/
Datenstand
==================

Für den Datensatz wurden die Verwaltungsgebiete zum Stand 31.12.2018 (Quelle: Geodatenzentrum) verwendet und mit
den Einwohner- und Flächenzahlen zum Stand 31.12.2018 (Jahresausgabe) (Quelle: Destatis) verknüpft.
Für den Datensatz wurden die Verwaltungsgebiete zum Stand 31.12.2023 (Quelle: Geodatenzentrum) verwendet und mit
den Einwohner- und Flächenzahlen zum Stand 31.12.2023 (Jahresausgabe) (Quelle: Destatis) verknüpft.

Datenquellen:

* https://gdz.bkg.bund.de/index.php/default/open-data/verwaltungsgebiete-1-250-000-ebenen-stand-31-12-vg250-ebenen-31-12.html
* https://www.destatis.de/DE/Themen/Laender-Regionen/Regionales/Gemeindeverzeichnis/_inhalt.html
* http://regenesis.pudo.org/

© GeoBasis-DE / BKG 2019
© GeoBasis-DE / BKG 2023
2 changes: 1 addition & 1 deletion converter/convertPopulationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ for(var i = 7; sheet['A' + i]; i++) {
if(readCell('K', i)) {
var rs = readCell('C', i) + readCell('D', i) + readCell('E', i) + readCell('F', i) + readCell('G', i);
result[rs] = {
'RS': rs,
'ARS': rs,
'area': readCell('I', i),
'population': readCell('J', i),
'population_m': readCell('K', i),
Expand Down
6 changes: 4 additions & 2 deletions converter/update-readme.txt → converter/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1) Download "Verwaltungsgebiete 1:250.000" from https://gdz.bkg.bund.de/
# Upgrade the data for the maps
1) Download "Verwaltungsgebiete 1:250.000" from https://gdz.bkg.bund.de/ (use UTM32s Shape)
2) extract it here, adapt and run update-data.sh
3) Download "Jahresausgabe" Excel-Format from https://www.destatis.de/DE/Themen/Laender-Regionen/Regionales/Gemeindeverzeichnis/_inhalt.html
4) run node convertPopulationData.js <XLSX-File> ../src/data/destatis.json
4) run `npm install`
4) run `node convertPopulationData.js <XLSX-File> ../src/data/destatis.json`
6 changes: 3 additions & 3 deletions converter/update-data.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
./convert-shapefile.sh vg250_2018-12-31.utm32s.shape.ebenen/vg250_ebenen/VG250_GEM.dbf gemeinden ../src/data/
./convert-shapefile.sh vg250_2018-12-31.utm32s.shape.ebenen/vg250_ebenen/VG250_KRS.dbf landkreise ../src/data/
./convert-shapefile.sh vg250_2018-12-31.utm32s.shape.ebenen/vg250_ebenen/VG250_LAN.dbf bundeslaender ../src/data/
./convert-shapefile.sh vg250_12-31.utm32s.shape.ebenen/vg250_ebenen_1231/VG250_GEM.dbf gemeinden ../src/data/
./convert-shapefile.sh vg250_12-31.utm32s.shape.ebenen/vg250_ebenen_1231/VG250_KRS.dbf landkreise ../src/data/
./convert-shapefile.sh vg250_12-31.utm32s.shape.ebenen/vg250_ebenen_1231/VG250_LAN.dbf bundeslaender ../src/data/
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Weiterleitung zur GeoJSON Utilities</title>
<meta http-equiv="refresh" content="0; url=src/">
<script>window.location.href = "src/"</script>
</head>
<body>
<p>Sie werden zur <a href="src/">GeoJSON Utilities</a> weitergeleitet...</p>
</body>
</html>
Loading