[Qgis-user] Anybody knows how to download OSM Turn Restrictions?
Clifford Snow
clifford at snowandsnow.us
Wed Aug 30 22:14:48 PDT 2017
Overpass can grab turn restrictions. Read the wiki[1] for information on
how turn restrictions are tagged.
For example, this query [1] grabs all turn restrictions in my county. Once
the query has run download a geojson for loading into QGIS
[out:json][timeout:25];
// fetch area “skagit county” to search in
{{geocodeArea:skagit county}}->.searchArea;
// gather results
(
// query part for: “type=restriction and restriction=*”
relation["type"="restriction"]["restriction"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
FYI - Read the OSM wiki[2] for information on how turn restrictions are
tagged to help improve the query or to narrow down the results
[1] http://overpass-turbo.eu/s/rn7
[2] https://wiki.openstreetmap.org/wiki/Relation:restriction
Clifford
--
@osm_seattle
osm_seattle.snowandsnow.us
OpenStreetMap: Maps with a human touch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170830/69e7c2cd/attachment.html>
More information about the Qgis-user
mailing list