mirror of
https://github.com/Findus23/vienna-cycling-quality.git
synced 2024-09-09 04:13:48 +02:00
document analysis for Vienna
This commit is contained in:
parent
790572d589
commit
3b1231bf75
2 changed files with 68 additions and 0 deletions
25
data/README.md
Normal file
25
data/README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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
|
||||
```overpass
|
||||
{{geocodeArea:Vienna}}->.searchArea;
|
||||
```
|
||||
for this and
|
||||
```overpass
|
||||
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](https://github.com/tyrasd/osmtogeojson) directly from the commandline.
|
||||
```bash
|
||||
osmtogeojson out.xml > out.geojson
|
||||
```
|
||||
|
||||
In Qgis I exported the layer as a EPSG:4326 geojson file and then used
|
||||
```bash
|
||||
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.
|
43
data/query.txt
Normal file
43
data/query.txt
Normal file
|
@ -0,0 +1,43 @@
|
|||
[out:json][timeout:25];
|
||||
area(id:3600109166)->.searchArea;
|
||||
(
|
||||
way["highway"="cycleway"](area.searchArea);
|
||||
way["highway"="path"]["bicycle"!="no"]["bicycle"!="dismount"](area.searchArea);
|
||||
way["highway"="footway"]["bicycle"="yes"](area.searchArea);
|
||||
way["highway"="footway"]["bicycle"="designated"](area.searchArea);
|
||||
way["highway"="footway"]["bicycle"="permissive"](area.searchArea);
|
||||
way["highway"="bridleway"]["bicycle"="yes"](area.searchArea);
|
||||
way["highway"="bridleway"]["bicycle"="designated"](area.searchArea);
|
||||
way["highway"="bridleway"]["bicycle"="permissive"](area.searchArea);
|
||||
way["highway"="steps"]["bicycle"="yes"](area.searchArea);
|
||||
way["highway"="steps"]["bicycle"="designated"](area.searchArea);
|
||||
way["highway"="steps"]["bicycle"="permissive"](area.searchArea);
|
||||
|
||||
way["highway"="motorway"](area.searchArea);
|
||||
way["highway"="motorway_link"](area.searchArea);
|
||||
way["highway"="trunk"](area.searchArea);
|
||||
way["highway"="trunk_link"](area.searchArea);
|
||||
|
||||
way["highway"="primary"](area.searchArea);
|
||||
way["highway"="primary_link"](area.searchArea);
|
||||
way["highway"="secondary"](area.searchArea);
|
||||
way["highway"="secondary_link"](area.searchArea);
|
||||
way["highway"="tertiary"](area.searchArea);
|
||||
way["highway"="tertiary_link"](area.searchArea);
|
||||
way["highway"="unclassified"](area.searchArea);
|
||||
way["highway"="residential"](area.searchArea);
|
||||
way["highway"="living_street"](area.searchArea);
|
||||
way["highway"="pedestrian"](area.searchArea);
|
||||
way["highway"="road"](area.searchArea);
|
||||
|
||||
way["highway"="service"][!"service"](area.searchArea);
|
||||
way["highway"="service"]["service"="alley"](area.searchArea);
|
||||
way["highway"="service"]["bicycle"="yes"](area.searchArea);
|
||||
way["highway"="service"]["bicycle"="designated"](area.searchArea);
|
||||
way["highway"="service"]["bicycle"="permissive"](area.searchArea);
|
||||
way["highway"="track"](area.searchArea);
|
||||
);
|
||||
// print results
|
||||
out body;
|
||||
>;
|
||||
out skel qt;
|
Loading…
Reference in a new issue