fixes
This commit is contained in:
parent
079c0b53ff
commit
892faf768b
144
README.md
144
README.md
@ -83,147 +83,3 @@ Leaflet Ajax
|
||||
|
||||
Voraussetzungen ist ein Webserver mit PHP 8.x und eine SQL-Datenbank, z.B. MariaDB.
|
||||
|
||||
|
||||
|
||||
## Datenbankstruktur
|
||||
|
||||
### Table data
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.1.3
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: mariadb
|
||||
-- Erstellungszeit: 06. Okt 2023 um 10:44
|
||||
-- Server-Version: 10.9.2-MariaDB-1:10.9.2+maria~ubu2204
|
||||
-- PHP-Version: 8.1.15
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
--
|
||||
-- Datenbank: `unfallstatistik`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `data`
|
||||
--
|
||||
|
||||
CREATE TABLE `data` (
|
||||
`OBJECTID` int(11) NOT NULL,
|
||||
`UIDENTSTLAE` varchar(30) DEFAULT NULL,
|
||||
`ULAND` int(11) NOT NULL,
|
||||
`UREGBEZ` int(11) NOT NULL,
|
||||
`UKREIS` int(11) NOT NULL,
|
||||
`UGEMEINDE` int(11) NOT NULL,
|
||||
`UJAHR` int(11) NOT NULL,
|
||||
`UMONAT` int(11) DEFAULT NULL,
|
||||
`USTUNDE` int(11) DEFAULT NULL,
|
||||
`UWOCHENTAG` int(11) DEFAULT NULL,
|
||||
`UKATEGORIE` int(11) DEFAULT NULL,
|
||||
`UART` int(11) DEFAULT NULL,
|
||||
`UTYP1` int(11) DEFAULT NULL,
|
||||
`ULICHTVERH` int(11) DEFAULT NULL,
|
||||
`USTRZUSTAND` int(11) DEFAULT NULL,
|
||||
`IstRad` int(11) DEFAULT NULL,
|
||||
`IstPKW` int(11) DEFAULT NULL,
|
||||
`IstFuss` int(11) DEFAULT NULL,
|
||||
`IstKrad` int(11) DEFAULT NULL,
|
||||
`IstGkfz` int(11) DEFAULT NULL,
|
||||
`IstSonstige` int(11) DEFAULT NULL,
|
||||
`LINREFX` float DEFAULT NULL,
|
||||
`LINREFY` float DEFAULT NULL,
|
||||
`XGCSWGS84` float DEFAULT NULL,
|
||||
`YGCSWGS84` float DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Indizes der exportierten Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `data`
|
||||
--
|
||||
ALTER TABLE `data`
|
||||
ADD PRIMARY KEY (`OBJECTID`,`ULAND`,`UREGBEZ`,`UKREIS`,`UGEMEINDE`,`UJAHR`);
|
||||
COMMIT;
|
||||
|
||||
|
||||
### Table district
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
--
|
||||
-- Datenbank: `unfallstatistik`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `district`
|
||||
--
|
||||
|
||||
CREATE TABLE `district` (
|
||||
`id` int(11) NOT NULL,
|
||||
`district` varchar(40) NOT NULL,
|
||||
`title` varchar(80) NOT NULL,
|
||||
`lng` float NOT NULL,
|
||||
`lat` float NOT NULL,
|
||||
`zoom` int(11) NOT NULL,
|
||||
`geojson` varchar(40) NOT NULL,
|
||||
`ULAND` int(11) NOT NULL,
|
||||
`UREGBEZ` int(11) NOT NULL,
|
||||
`UKREIS` int(11) NOT NULL,
|
||||
`UGEMEINDE` varchar(3) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `district`
|
||||
--
|
||||
|
||||
INSERT INTO `district` (`id`, `district`, `title`, `lng`, `lat`, `zoom`, `geojson`, `ULAND`, `UREGBEZ`, `UKREIS`, `UGEMEINDE`) VALUES
|
||||
(5, 'soest', 'Soest', 8.10716, 51.5718, 13, 'soest.geojson', 5, 9, 74, '40'),
|
||||
(6, 'hamm', 'Hamm', 7.819, 51.6813, 12, 'hamm.geojson', 5, 9, 15, '0'),
|
||||
(7, 'muelheim', 'Muelheim an der Ruhr', 6.881, 51.42, 13, 'muelheim.geojson', 5, 1, 17, '0'),
|
||||
(8, 'dortmund', 'Dortmund', 7.464, 51.51, 12, 'dortmund.geojson', 5, 9, 13, '0'),
|
||||
(9, 'unna', 'Kreis Unna', 7.708, 51.597, 11, 'unna.geojson', 5, 9, 78, '-1'),
|
||||
(10, 'muenster', 'Münster', 7.634, 51.96, 12, 'muenster.geojson', 5, 5, 15, '0'),
|
||||
(11, 'warendorf', 'Kreis Warendorf', 8.006, 51.86, 11, 'warendorf.geojson', 5, 5, 70, '-1'),
|
||||
(12, 'marl', 'Marl', 7.106, 51.6585, 13, 'marl.geojson', 5, 5, 62, '24'),
|
||||
(13, 'bochum', 'Bochum', 7.235, 51.474, 12, 'bochum.geojson', 5, 9, 11, '0'),
|
||||
(14, 'essen', 'Essen', 7.01, 51.458, 12, 'essen.geojson', 5, 1, 13, '0'),
|
||||
(15, 'wuppertal', 'Wuppertal', 7.14729, 51.2442, 12, 'wuppertal.geojson', 5, 1, 24, '0'),
|
||||
(16, 'duesseldorf', 'Düsseldorf', 6.7875, 51.225, 11, 'duesseldorf.geojson', 5, 1, 11, '0'),
|
||||
(17, 'hagen', 'Hagen', 7.48159, 51.3582, 12, 'hagen.geojson', 5, 9, 14, '0'),
|
||||
(18, 'coesfeld', 'Kreis Coesfeld', 7.37666, 51.8814, 11, 'coesfeld.geojson', 5, 5, 58, '0'),
|
||||
(19, 'bergischgladbach', 'Bergisch Gladbach', 7.14547, 50.9852, 12, 'bergischgladbach.json', 5, 3, 78, '4'),
|
||||
(21, 'rbk', 'Rheinisch Bergischer Kreis', 7.2164, 51.0364, 11, 'rbk.geojson', 5, 3, 78, '0'),
|
||||
(22, 'obk', 'Oberbergischer Kreis', 7.53397, 51.0158, 11, 'obk.geojson', 5, 3, 74, '0'),
|
||||
(23, 'rsk', 'Rhein-Sieg-Kreis', 7.23614, 50.777, 11, 'rsk.geojson', 5, 3, 82, '0'),
|
||||
(24, 'bonn', 'Bonn', 7.11524, 50.714, 12, 'bonn.geojson', 5, 3, 14, '0');
|
||||
|
||||
--
|
||||
-- Indizes der exportierten Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `district`
|
||||
--
|
||||
ALTER TABLE `district`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für exportierte Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `district`
|
||||
--
|
||||
ALTER TABLE `district`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
||||
COMMIT;
|
||||
|
144
dump/sql-structure.md
Normal file
144
dump/sql-structure.md
Normal file
@ -0,0 +1,144 @@
|
||||
|
||||
|
||||
## Datenbankstruktur
|
||||
|
||||
### Table data
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.1.3
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: mariadb
|
||||
-- Erstellungszeit: 06. Okt 2023 um 10:44
|
||||
-- Server-Version: 10.9.2-MariaDB-1:10.9.2+maria~ubu2204
|
||||
-- PHP-Version: 8.1.15
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
--
|
||||
-- Datenbank: `unfallstatistik`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `data`
|
||||
--
|
||||
|
||||
CREATE TABLE `data` (
|
||||
`OBJECTID` int(11) NOT NULL,
|
||||
`UIDENTSTLAE` varchar(30) DEFAULT NULL,
|
||||
`ULAND` int(11) NOT NULL,
|
||||
`UREGBEZ` int(11) NOT NULL,
|
||||
`UKREIS` int(11) NOT NULL,
|
||||
`UGEMEINDE` int(11) NOT NULL,
|
||||
`UJAHR` int(11) NOT NULL,
|
||||
`UMONAT` int(11) DEFAULT NULL,
|
||||
`USTUNDE` int(11) DEFAULT NULL,
|
||||
`UWOCHENTAG` int(11) DEFAULT NULL,
|
||||
`UKATEGORIE` int(11) DEFAULT NULL,
|
||||
`UART` int(11) DEFAULT NULL,
|
||||
`UTYP1` int(11) DEFAULT NULL,
|
||||
`ULICHTVERH` int(11) DEFAULT NULL,
|
||||
`USTRZUSTAND` int(11) DEFAULT NULL,
|
||||
`IstRad` int(11) DEFAULT NULL,
|
||||
`IstPKW` int(11) DEFAULT NULL,
|
||||
`IstFuss` int(11) DEFAULT NULL,
|
||||
`IstKrad` int(11) DEFAULT NULL,
|
||||
`IstGkfz` int(11) DEFAULT NULL,
|
||||
`IstSonstige` int(11) DEFAULT NULL,
|
||||
`LINREFX` float DEFAULT NULL,
|
||||
`LINREFY` float DEFAULT NULL,
|
||||
`XGCSWGS84` float DEFAULT NULL,
|
||||
`YGCSWGS84` float DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Indizes der exportierten Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `data`
|
||||
--
|
||||
ALTER TABLE `data`
|
||||
ADD PRIMARY KEY (`OBJECTID`,`ULAND`,`UREGBEZ`,`UKREIS`,`UGEMEINDE`,`UJAHR`);
|
||||
COMMIT;
|
||||
|
||||
|
||||
### Table district
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
--
|
||||
-- Datenbank: `unfallstatistik`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `district`
|
||||
--
|
||||
|
||||
CREATE TABLE `district` (
|
||||
`id` int(11) NOT NULL,
|
||||
`district` varchar(40) NOT NULL,
|
||||
`title` varchar(80) NOT NULL,
|
||||
`lng` float NOT NULL,
|
||||
`lat` float NOT NULL,
|
||||
`zoom` int(11) NOT NULL,
|
||||
`geojson` varchar(40) NOT NULL,
|
||||
`ULAND` int(11) NOT NULL,
|
||||
`UREGBEZ` int(11) NOT NULL,
|
||||
`UKREIS` int(11) NOT NULL,
|
||||
`UGEMEINDE` varchar(3) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `district`
|
||||
--
|
||||
|
||||
INSERT INTO `district` (`id`, `district`, `title`, `lng`, `lat`, `zoom`, `geojson`, `ULAND`, `UREGBEZ`, `UKREIS`, `UGEMEINDE`) VALUES
|
||||
(5, 'soest', 'Soest', 8.10716, 51.5718, 13, 'soest.geojson', 5, 9, 74, '40'),
|
||||
(6, 'hamm', 'Hamm', 7.819, 51.6813, 12, 'hamm.geojson', 5, 9, 15, '0'),
|
||||
(7, 'muelheim', 'Muelheim an der Ruhr', 6.881, 51.42, 13, 'muelheim.geojson', 5, 1, 17, '0'),
|
||||
(8, 'dortmund', 'Dortmund', 7.464, 51.51, 12, 'dortmund.geojson', 5, 9, 13, '0'),
|
||||
(9, 'unna', 'Kreis Unna', 7.708, 51.597, 11, 'unna.geojson', 5, 9, 78, '-1'),
|
||||
(10, 'muenster', 'Münster', 7.634, 51.96, 12, 'muenster.geojson', 5, 5, 15, '0'),
|
||||
(11, 'warendorf', 'Kreis Warendorf', 8.006, 51.86, 11, 'warendorf.geojson', 5, 5, 70, '-1'),
|
||||
(12, 'marl', 'Marl', 7.106, 51.6585, 13, 'marl.geojson', 5, 5, 62, '24'),
|
||||
(13, 'bochum', 'Bochum', 7.235, 51.474, 12, 'bochum.geojson', 5, 9, 11, '0'),
|
||||
(14, 'essen', 'Essen', 7.01, 51.458, 12, 'essen.geojson', 5, 1, 13, '0'),
|
||||
(15, 'wuppertal', 'Wuppertal', 7.14729, 51.2442, 12, 'wuppertal.geojson', 5, 1, 24, '0'),
|
||||
(16, 'duesseldorf', 'Düsseldorf', 6.7875, 51.225, 11, 'duesseldorf.geojson', 5, 1, 11, '0'),
|
||||
(17, 'hagen', 'Hagen', 7.48159, 51.3582, 12, 'hagen.geojson', 5, 9, 14, '0'),
|
||||
(18, 'coesfeld', 'Kreis Coesfeld', 7.37666, 51.8814, 11, 'coesfeld.geojson', 5, 5, 58, '0'),
|
||||
(19, 'bergischgladbach', 'Bergisch Gladbach', 7.14547, 50.9852, 12, 'bergischgladbach.json', 5, 3, 78, '4'),
|
||||
(21, 'rbk', 'Rheinisch Bergischer Kreis', 7.2164, 51.0364, 11, 'rbk.geojson', 5, 3, 78, '0'),
|
||||
(22, 'obk', 'Oberbergischer Kreis', 7.53397, 51.0158, 11, 'obk.geojson', 5, 3, 74, '0'),
|
||||
(23, 'rsk', 'Rhein-Sieg-Kreis', 7.23614, 50.777, 11, 'rsk.geojson', 5, 3, 82, '0'),
|
||||
(24, 'bonn', 'Bonn', 7.11524, 50.714, 12, 'bonn.geojson', 5, 3, 14, '0');
|
||||
|
||||
--
|
||||
-- Indizes der exportierten Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `district`
|
||||
--
|
||||
ALTER TABLE `district`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für exportierte Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `district`
|
||||
--
|
||||
ALTER TABLE `district`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
||||
COMMIT;
|
@ -68,6 +68,7 @@
|
||||
|
||||
<!-- Bitte nicht entfernen -->
|
||||
<p class="small">Entwicklung: Walter Hupfeld, Hamm<br>walter@hupfeld-hamm.de</p>
|
||||
<p> <a href="https://gitea.hpadm.de/whupfeld/unfallkarte">Quelltexte</a></p>
|
||||
|
||||
<a class="btn btn-primary text-white" href="index.php">zurück</a>
|
||||
</div>
|
||||
|
@ -29,10 +29,22 @@
|
||||
<div class="card-body">
|
||||
|
||||
<h3>Weitere Auswertungen zu Fahrradunfällen</h3>
|
||||
<ul>
|
||||
<li><a href="kreise.php">Fahrradunfälle nach Kreisen und kreisfreien Städten</a></li>
|
||||
<li><a href="<?=$gemeinde_page?>">Fahrradunfälle nach Gemeinden</a></li>
|
||||
<li><a href="nrw_details.php">Landeswerte</a></li>
|
||||
<p>Auf den folgenden Seiten werden für Kreise bzw. Kreisfreie Städte und Gemeinden die
|
||||
Entwicklung der Unfallzahlen von 2019 bis 2022 dagestellt differenziert nach der
|
||||
Unfallkategorie. Weiterhin gibt es für das Jahr 2022 zu den Fahrradunfällen
|
||||
Statistiken zu Unfallart, Unfalltyp und Unfallbeteiligten.</p>
|
||||
<p>Alle Angaben basieren auf Daten des
|
||||
<a href="https://www.destatis.de" target_"blanc">Statistischen Bundesamtes</a>.
|
||||
Datenquelle und weitere Erläuterungen zu den Dateben gibt es unter
|
||||
<a href="https://unfallatlas.statistikportal.de" target="_blank">unfallatlas.statistikportal.de</a>
|
||||
Die Daten unterliegen der
|
||||
<a href="https://www.govdata.de/dl-de/by-2-0" target="_blanc">Datenlizenz Deutschland – Namensnennung – Version 2.0</a></p>
|
||||
<p> </p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item"><a href="nrw_details.php"><strong>Landeswerte NRW</strong></a></li>
|
||||
<li class="list-group-item"><a href="kreise.php"><strong>Fahrradunfälle nach Kreisen und kreisfreien Städten</strong></a></li>
|
||||
<li class="list-group-item"><a href="<?=$gemeinde_page?>"><strong>Fahrradunfälle nach Gemeinden</strong></a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
@ -16,10 +16,11 @@
|
||||
|
||||
|
||||
<li class="nav-item active dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<a class="nav-link dropdown-toggle" href="./" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Statistik
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
<a class="dropdown-item" href="index.php">Übersicht</a>
|
||||
<a class="dropdown-item" href="nrw_details.php">NRW</a>
|
||||
<a class="dropdown-item" href="kreise.php">Kreise</a>
|
||||
<a class="dropdown-item" href="gemeinden.php">Gemeinden</a>
|
||||
|
Loading…
Reference in New Issue
Block a user