OpenStreetMap 标志 OpenStreetMap

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图标 Mastodon图标 Telegram图标 X图标

讨论

Richard2020年05月22日 16:36 的评论

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

cough

https://cycle.travel/map

Alan Bragg2020年05月23日 14:14 的评论

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.

maning2020年05月25日 02:21 的评论

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.

登录以留下评论