From 3b3d19cb30f5c4339fec46f7815e417ec8bb1778 Mon Sep 17 00:00:00 2001 From: Stefan Baebler Date: Sun, 12 Apr 2020 09:48:46 +0200 Subject: [PATCH] Add CSV files --- Makefile | 4 +- README.md | 28 +- data/NA.csv | 6036 ++++++++++++++++ data/OB.csv | 213 + data/ODO.csv | 1232 ++++ data/OG.csv | 13 + data/PO.csv | 18192 +++++++++++++++++++++++++++++++++++++++++++++++++ data/PT.csv | 467 ++ data/SL.csv | 822 +++ data/SR.csv | 13 + data/UE.csv | 59 + data/UL.csv | 10382 ++++++++++++++++++++++++++++ data/VDV.csv | 3105 +++++++++ data/VLV.csv | 3764 ++++++++++ 14 files changed, 44315 insertions(+), 15 deletions(-) create mode 100644 data/NA.csv create mode 100644 data/OB.csv create mode 100644 data/ODO.csv create mode 100644 data/OG.csv create mode 100644 data/PO.csv create mode 100644 data/PT.csv create mode 100644 data/SL.csv create mode 100644 data/SR.csv create mode 100644 data/UE.csv create mode 100644 data/UL.csv create mode 100644 data/VDV.csv create mode 100644 data/VLV.csv diff --git a/Makefile b/Makefile index d8fab25..8e3dd08 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,10 @@ geojson: do \ DIRNAME=$$(dirname $$shpFile); \ BASENAME=$$(basename $$shpFile .shp); \ - echo -n "$$BASENAME: "; \ + echo -n "$$BASENAME GeoJSON: "; \ SHAPE_ENCODING=CP1250 ogr2ogr -progress -t_srs "EPSG:4326" -f "GeoJSON" data/$$BASENAME.geojson $$DIRNAME -lco RFC7946=YES -lco WRITE_BBOX=YES -mapFieldType Date=String; \ + echo -n "$$BASENAME CSV: "; \ + SHAPE_ENCODING=CP1250 ogr2ogr -progress -t_srs "EPSG:4326" -f "CSV" data/$$BASENAME.csv $$DIRNAME -lco WRITE_BOM=YES; \ done .PHONY: clean diff --git a/README.md b/README.md index ef66e62..121361e 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,20 @@ [Interaktivni zemljevid / Interactive Map](https://umap.openstreetmap.fr/sl/map/obcine-v-sloveniji_440646) -| Opis / Description | Datoteka / File | -|--- |--- | -| Občine / Municipalities | [OB.geojson](data/OB.geojson) | -| Naselja / Settlements | [NA.geojson](data/NA.geojson) | -| Upravne enote / Administrative units | [UE.geojson](data/UE.geojson) | -| Statistične regije / Statistical regions | [SR.geojson](data/SR.geojson) | -| Ožji deli občin / Municipality subdivisions | [ODO.geojson](data/ODO.geojson) | -| Ulice / Streets | [UL.geojson](data/UL.geojson) | -| Poštni okoliši / Postal districts | [PT.geojson](data/PT.geojson) | -| Šolski okoliši / School districts | [SL.geojson](data/SL.geojson) | -| Enote državnozborskih volitev / Voting districts | [VDV.geojson](data/VDV.geojson) | -| Enote lokalnih volitev / Voting districts | [VLV.geojson](data/VLV.geojson) | -| Območne geodetske uprave / Administrative units | [OG.geojson](data/OG.geojson) | -| Prostorski okoliši / Spatial districts | [PO.geojson](data/PO.geojson) | +| Opis / Description | GeoJSON | CSV | +|--------------------------------------------------|---------------------------------|-------------------------| +| Občine / Municipalities | [OB.geojson](data/OB.geojson) | [OB.csv](data/OB.csv) | +| Naselja / Settlements | [NA.geojson](data/NA.geojson) | [NA.csv](data/NA.csv) | +| Upravne enote / Administrative units | [UE.geojson](data/UE.geojson) | [UE.csv](data/UE.csv) | +| Statistične regije / Statistical regions | [SR.geojson](data/SR.geojson) | [SR.csv](data/SR.csv) | +| Ožji deli občin / Municipality subdivisions | [ODO.geojson](data/ODO.geojson) | [ODO.csv](data/ODO.csv) | +| Ulice / Streets | [UL.geojson](data/UL.geojson) | [UL.csv](data/UL.csv) | +| Poštni okoliši / Postal districts | [PT.geojson](data/PT.geojson) | [PT.csv](data/PT.csv) | +| Šolski okoliši / School districts | [SL.geojson](data/SL.geojson) | [SL.csv](data/SL.csv) | +| Enote državnozborskih volitev / Voting districts | [VDV.geojson](data/VDV.geojson) | [VDV.csv](data/VDV.csv) | +| Enote lokalnih volitev / Voting districts | [VLV.geojson](data/VLV.geojson) | [VLV.csv](data/VLV.csv) | +| Območne geodetske uprave / Administrative units | [OG.geojson](data/OG.geojson) | [OG.csv](data/OG.csv) | +| Prostorski okoliši / Spatial districts | [PO.geojson](data/PO.geojson) | [PO.csv](data/PO.csv) |