From 9c0422c68aff4c9b4169d1182eb3c7026439f74a Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Fri, 6 Oct 2023 12:50:48 +0200 Subject: [PATCH] fix --- README.md | 116 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 69 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index b01eccc..f4deb10 100644 --- a/README.md +++ b/README.md @@ -92,58 +92,80 @@ Voraussetzungen ist ein Webserver mit PHP 8.x und eine SQL-Datenbank, z.B. Maria COMMIT; -### Tabel district +### Table district - SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; - START TRANSACTION; - SET time_zone = "+00:00"; - -- - -- Datenbank: `unfallstatistik` - -- +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; +-- +-- Tabellenstruktur für Tabelle `district` +-- - -- - -- Indizes der exportierten Tabellen - -- +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; - -- - -- Indizes für die Tabelle `data` - -- - ALTER TABLE `data` - ADD PRIMARY KEY (`OBJECTID`,`ULAND`,`UREGBEZ`,`UKREIS`,`UGEMEINDE`,`UJAHR`); - COMMIT; +-- +-- 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;