From 6cf3a356ebc8e3f6504d1e46d2ffb981b19b0f3f Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Sat, 7 Oct 2023 23:30:02 +0200 Subject: [PATCH] kreistabelle --- dump/kreise.csv | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ setup.sh | 3 ++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 dump/kreise.csv diff --git a/dump/kreise.csv b/dump/kreise.csv new file mode 100644 index 0000000..5e3caf1 --- /dev/null +++ b/dump/kreise.csv @@ -0,0 +1,54 @@ +id,district ,title ,lng ,lat ,zoom ,geojson ,ULAND ,UREGBEZ ,UKREIS ,UGEMEINDE,POPULATION +1,aachen,Aachen (Städteregion),6.0834,50.7753,10,aachen.geojson,5,3,34,0,556876 +2,bielefeld,Bielefeld (kreisfreie Stadt),0,0,10,bielefeld.geojson,5,7,11,0,338470 +3,bochum,Bochum (kreisfreie Stadt),0,0,10,bochum.geojson,5,9,11,0,364628 +4,bonn,Bonn (kreisfreie Stadt),0,0,10,bonn.geojson,5,3,14,0,328375 +5,borken,Borken,0,0,10,borken.geojson,5,5,54,0,365145 +6,bottrop,Bottrop (kreisfreie Stadt),0,0,10,bottrop.geojson,5,5,12,0,117565 +7,coesfeld,Coesfeld,0,0,10,coesfeld.geojson,5,5,58,0,228130 +8,dortmund,Dortmund (kreisfreie Stadt),0,0,10,dortmund.geojson,5,9,13,0,601402 +9,duisburg,Duisburg (kreisfreie Stadt),0,0,10,duisburg.geojson,5,1,12,0,500577 +10,dueren,Düren,0,0,10,dueren.geojson,5,3,58,0,270720 +11,duesseldorf,Düsseldorf (kreisfreie Stadt),0,0,10,duesseldorf.geojson,5,1,11,0,620523 +12,erk,Ennepe-Ruhr-Kreis,0,0,10,erk.geojson,5,9,54,0,318083 +13,essen,Essen (kreisfreie Stadt),0,0,10,essen.geojson,5,1,13,0,583109 +14,euskrichen,Euskirchen,0,0,10,euskrichen.geojson,5,3,66,0,194586 +15,gelsenkrichen,Gelsenkirchen (kreisfreie Stadt),0,0,10,gelsenkrichen.geojson,5,5,13,0,260654 +16,guetersloh,Gütersloh,0,0,10,guetersloh.geojson,5,7,54,0,365478 +17,hagen,Hagen (kreisfreie Stadt),0,0,10,hagen.geojson,5,9,14,0,187944 +18,hamm,Hamm (kreisfreie Stadt),0,0,10,hamm.geojson,5,9,15,0,181965 +19,heinsberg,Heinsberg,0,0,10,heinsberg.geojson,5,3,70,0,256953 +20,herford,Herford,0,0,10,herford.geojson,5,7,58,0,251205 +21,herne,Herne (kreisfreie Stadt),0,0,10,herne.geojson,5,5,62,0,153280 +22,hochsauerlandkreis,Hochsauerlandkreis,0,0,10,hochsauerlandkreis.geojson,5,9,58,0,263874 +23,hoexter,Höxter,0,0,10,hoexter.geojson,5,7,62,0,140366 +24,kleve,Kleve,0,0,10,kleve.geojson,5,1,54,0,312519 +25,koeln,Köln (kreisfreie Stadt),0,0,10,koeln.geojson,5,3,15,0,1089190 +26,krefeld,Krefeld (kreisfreie Stadt),0,0,10,krefeld.geojson,5,1,14,0,235500 +27,leverkusen,Leverkusen (kreisfreie Stadt),0,0,10,leverkusen.geojson,5,3,16,0,167007 +28,lippe,Lippe,0,0,10,lippe.geojson,5,7,66,0,363634 +29,maerkischerkreis,Märkischer Kreis,0,0,10,maerkischerkreis.geojson,5,9,62,0,410784 +30,mettmann,Mettmann,0,0,10,mettmann.geojson,5,1,58,0,485019 +31,Minden-luebbecke,Minden-Lübbecke,0,0,10,Minden-luebbecke.geojson,5,7,70,0,316163 +32,moenchengladbach,Mönchengladbach (kreisfreie Stadt),0,0,10,moenchengladbach.geojson,5,1,16,0,261034 +33,muelheim,Mülheim an der Ruhr (kreisfreie Stadt),0,0,10,muelheim.geojson,5,1,17,0,173895 +34,muenster,Münster (kreisfreie Stadt),0,0,10,muenster.geojson,5,5,15,0,316403 +35,oberbergischerkreis,Oberbergischer Kreis,0,0,10,oberbergischerkreis.geojson,5,3,74,0,282224 +36,oberhausen,Oberhausen (kreisfreie Stadt),0,0,10,oberhausen.geojson,5,1,19,0,210313 +37,olpe,Olpe,0,0,10,olpe.geojson,5,9,66,0,135965 +38,paderborn,Paderborn,0,0,10,paderborn.geojson,5,7,74,0,306725 +39,recklinghausen,Recklinghausen,0,0,10,recklinghausen.geojson,5,5,62,0,614676 +40,remscheid,Remscheid (kreisfreie Stadt),0,0,10,remscheid.geojson,5,1,20,0,111834 +41,rek,Rhein-Erft-Kreis,0,0,10,rek.geojson,5,3,62,0,470296 +42,neuss,Rhein-Kreis Neuss,0,0,10,neuss.geojson,5,1,62,0,455432 +43,rsk,Rhein-Sieg-Kreis,0,0,10,rsk.geojson,5,3,82,0,598941 +44,rbk,Rheinisch-Bergischer Kreis,0,0,10,rbk.geojson,5,3,78,0,283249 +45,siegen-wittgenstein,Siegen-Wittgenstein,0,0,10,siegen-wittgenstein.geojson,5,9,70,0,274243 +46,soest,Soest,0,0,10,soest.geojson,5,9,74,0,313704 +47,solingen,Solingen (kreisfreie Stadt),0,0,10,solingen.geojson,5,1,22,0,159619 +48,steinfurt,Steinfurt,0,0,10,steinfurt.geojson,5,5,66,0,448865 +49,unna,Unna,0,0,10,unna.geojson,5,9,78,0,396876 +50,viersen,Viersen,0,0,10,viersen.geojson,5,1,66,0,302924 +51,warendorf,Warendorf,0,0,10,warendorf.geojson,5,5,70,0,279131 +52,wesel,Wesel,0,0,10,wesel.geojson,5,1,70,0,468554 +53,wuppertal,Wuppertal (kreisfreie Stadt),0,0,10,wuppertal.geojson,5,1,24,0,362343 diff --git a/setup.sh b/setup.sh index a85a0d2..585b13e 100644 --- a/setup.sh +++ b/setup.sh @@ -1,11 +1,12 @@ #!/bin/bash docker compose stop +wait docker build -t php81:v1 php81-apache gunzip dump/data.sql.gz gunzip dump/district.sql.gz -mkdir database cp -n config.sample.php config.php docker compose up -d +wait docker exec -it unfallkarte-db mysqladmin -uroot -pgeheim create unfallstatistik docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/data.sql docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/district.sql