OpenStreetMap 로고 OpenStreetMap

Targeted Cleanup with Overpass Turbo Queries

gecho111님이 English로 2020년 5월 22일에 게시함.

I saw a local twitter post last night from someone lamenting the lack of road surface indication on Google Maps when a planned bike route suddenly went from asphalt to gravel and sand. I replied with the inelegant suggestion of an Overpass query to highlight just the paved roads. Though a route planning map that visually indicates road surface would be really nice (I’m looking at you RideWithGPS!)

I quickly noticed in the query results unpaved roads without a surface tag, which provided me with my next editing task. With a relatively small percentage of local roads without surface tags I was able to pull fairly large areas into JOSM using an Overpass Turbo query for just those roads.

highway=* and highway!=service and surface!=*

I’m excluding service roads to exclude a multitude of rural driveways and other short terminal roads. By adding a filter (surface=*) the roads I update disappear from view once I provide a surface for them making for an easy workflow.

The CANVEC imports I did for Saskatchewan roads back in 2014 included road surface, so it was mostly the hand drawn pre-2014 roads I need to add surfaces to.

One thing to watch out for. Since you aren’t downloading everything, deleting a road may delete nodes shared by roads that haven’t been downloaded. This will generate conflicts that need to be resolved when doing an upload. Resolve the conflict by selecting that the state of the affected node should be “not deleted”. Unfortunate it only detects conflicts one at a time instead of detecting all of them, so you may need to restart the upload / resolve conflicts multiple times.

위치: Bayne No. 371, Saskatchewan, Canada
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2020년 5월 22일 16:36Richard님의 의견

Though a route planning map that visually indicates road surface would be really nice

cough

https://cycle.travel/map

2020년 5월 23일 14:14Alan Bragg님의 의견

To avoid having to resolve conflicts, try selecting the road you want to delete and use the “Download along” plug-in” which will download everything necessary to prevent the conflicts.

2020년 5월 25일 02:21maning님의 의견

Another approach I do is: 1. Download features from overpass. 2. Load the features to JOSM’s Todo list. 3. Start resolving items while the “Download OSM data continuously” is active. This makes sure you have the latest data each time you fix and item in the todo list.

댓글을 남기려면 로그인하세요