1
0
Fork 0
mirror of https://github.com/Findus23/vienna-cycling-quality.git synced 2024-09-09 04:13:48 +02:00
vienna-cycling-quality/data
2024-03-24 16:43:30 +01:00
..
query.txt document analysis for Vienna 2024-03-24 16:43:30 +01:00
README.md document analysis for Vienna 2024-03-24 16:43:30 +01:00

Data-Analysis

This is using the original script from https://github.com/SupaplexOSM/OSM-Cycling-Quality-Index

I slighlty adapted the overpass query so that it is not using a bounding box, but the actual city borders. In overpass turbo we can use

{{geocodeArea:Vienna}}->.searchArea;

for this and

area(id:3600109166)->.searchArea;

in the API.

As the geoJSON export in the browser was stuck for me, I removed the [out:json] to get the API response as OSM XML, download this and then use osmtogeojson directly from the commandline.

osmtogeojson out.xml > out.geojson

In Qgis I exported the layer as a EPSG:4326 geojson file and then used

tippecanoe --output out.pmtiles --smallest-maximum-zoom-guess=18 -rg --drop-densest-as-needed --extend-zooms-if-still-dropping --force --layer=default output.geojson

to create the pmtiles for the website.