mirror of
https://github.com/Findus23/vienna-cycling-quality.git
synced 2024-09-09 04:13:48 +02:00
.. | ||
query.txt | ||
README.md |
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.