using_overlay_to_extract_data_from_openstreetmap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
using_overlay_to_extract_data_from_openstreetmap [2022/06/15 17:35] – abeverley | using_overlay_to_extract_data_from_openstreetmap [2022/06/21 18:14] (current) – [Total length of segregated cycleways in Westminster] abeverley | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Using Overpass to extract data from OpenStreetMap ===== | ===== Using Overpass to extract data from OpenStreetMap ===== | ||
- | I used the following [[Overpass|https:// | + | I used the following [[https:// |
+ | |||
+ | ==== Total length of highways in Westminster ==== | ||
+ | |||
+ | [out: | ||
+ | {{geocodeArea: | ||
+ | way[" | ||
+ | make stat number=count(ways), | ||
+ | out; | ||
+ | |||
+ | ==== Total length of segregated cycleways in Westminster ==== | ||
+ | |||
+ | [out: | ||
+ | {{geocodeArea: | ||
+ | way[" | ||
+ | make stat number=count(ways), | ||
+ | out; | ||
+ | |||
+ | ==== Total length of segregated cycleways in Camden ==== | ||
+ | |||
+ | [out: | ||
+ | {{geocodeArea: | ||
+ | way[" | ||
+ | make stat number=count(ways), | ||
+ | out; | ||
+ | |||
+ | ==== Show all segregated cycleways in Westminster on a map ==== | ||
+ | |||
+ | Click the zoom icon once generated | ||
+ | |||
+ | [out: | ||
+ | {{geocodeArea: | ||
+ | ( | ||
+ | way[" | ||
+ | ); | ||
+ | out body; | ||
+ | >; | ||
+ | out skel qt; | ||
+ | |||
+ | ==== Show only roads in Westminster on a map ==== | ||
+ | |||
+ | [out: | ||
+ | {{geocodeArea: | ||
+ | ( | ||
+ | way[" | ||
+ | ); | ||
+ | out body; | ||
+ | >; | ||
+ | out skel qt; | ||
+ | ==== Show segregated cycle routes on current viewed map ==== | ||
+ | |||
+ | [bbox: | ||
+ | ( | ||
+ | way[" | ||
+ | ); | ||
+ | out geom; | ||
+ | |||
+ | ==== Other things I didn't write details for ==== | ||
[out: | [out: | ||
Line 21: | Line 78: | ||
out; | out; | ||
} | } | ||
- | |||
- | [bbox: | ||
- | ( | ||
- | way[" | ||
- | ); | ||
- | out geom; | ||
[out: | [out: |
using_overlay_to_extract_data_from_openstreetmap.1655314503.txt.gz · Last modified: 2022/06/15 17:35 by abeverley