OSM Openstreetmap tagging ADV tracks.

Discussion in 'Mapping & Navigation' started by Myway, Mar 16, 2011.

  1. [TASF]Overkill

    [TASF]Overkill VRSATL

    Joined:
    Aug 3, 2009
    Oddometer:
    181
    Location:
    Lynchburg, VA
    Track vs. Path
    I think abhibeckert sums it up best in distinguishing track from path. There will obviously be some grey area in some cases, but this clears up most of the cases I've seen in real life.
    Track: Not paved, narrow enough to make passing difficult or impossible for cars.
    Path: Not paved and so narrow that even two motorcycles would have trouble passing each other.

    One-way difficulties
    This perhaps should be considered as part of the "hazard" tag that has received some talk. In either case, I would not recommend splitting the way into two separate ways to tag separately. It should be possible to tag a node on a way without much issue, but I'm not sure I've heard a really great way to do that.
    #61
  2. [TASF]Overkill

    [TASF]Overkill VRSATL

    Joined:
    Aug 3, 2009
    Oddometer:
    181
    Location:
    Lynchburg, VA
    Road jurisdiction

    Specifically relevant in the U.S... Many of the Forest Service roads within a given National Forest are obviously owned and maintained by the national forest service... but the remaining public roads are still just standard public roads. How does the OSM community generally tag the jurisdiction that a given road is under? I can't find any examples of how it SHOULD be done.

    There's some interesting examples for my questions here:
    http://www.openstreetmap.org/?lat=37.57472&lon=-79.34656&zoom=15&layers=M

    The "FR" roads, the dotted lines... Those are Forestry Roads and are within the jurisdiction of the George Washington National Forest, which is of course the big green mess that the whole screen is covered by.

    The Blue Ridge Parkway, which sweeps up from the bottom center, is actually within the jurisdiction of the National Park Service.

    And yet VA 130 is a local or state maintained road, as are all/most of the other named roads in that view.

    If I am rendering a map of specifically roads belonging to the Forest Service, and I want to code the NPS and state/local roads for reference... Is there a tag or a relation that is generally used for that?
    #62
  3. Myway

    Myway Long timer

    Joined:
    Jan 2, 2007
    Oddometer:
    3,264
    Location:
    Knobby country
    #63
  4. [TASF]Overkill

    [TASF]Overkill VRSATL

    Joined:
    Aug 3, 2009
    Oddometer:
    181
    Location:
    Lynchburg, VA
    Yes Myway, most of the data when OSM imported it from forestry data came through as residential. I didn't do it! That's one of the things I'm working on.
    #64
  5. FixerDave

    FixerDave KLR650 - XR200R

    Joined:
    Jul 13, 2006
    Oddometer:
    403
    Location:
    Victoria, BC, Canada
    Don't worry, I have no intention of mass-uploading anything to OSM, ever. Not my thing. I have, however, imported all useful data into my personal maps, and they are AWESOME! I just did a ride today, best ride in years, where I found a promising gated road with no signs and a nice path around. I followed it for a while until it dove into badly overgrown single-track, but... there was this old CanVec logging road, just 200m farther, so I pushed on. Ended up in a whole new-to-me riding area. Sure, the "road" was basically rocky single-track in places so overgrown I could barely see the trail but it took me where I wanted to go. It linked up with some fantastic powerline access roads, nobody but me on them...

    FAST :clap

    Later on, I hit on some rough single-track out that I never would have attempted except for, again, a CanVec track on the map in the right place. Yeah, old data, lousy for general mapping, but incredibly useful for dualsport. Best, I now have a GPS track of the ride. I'm in the process of running it through JOSM now. Still haven't decided if I'm going to upload those ways to OSM though... that powerline was :D

    Honestly, I probably will upload them... the ways in and our are seriously difficult and that should limit the traffic.

    As for mass-data, I may find the time to script a routine that converts particular road types from the old Ibycus data to OSM and then just post the files for others to personally use. I just did the set I'm running manually, but scripting it shouldn't be too hard. However, after having ridden some today, I can't honestly say this old data belongs in OSM proper. I can understand why they pulled it out of the new CanVec data. Not accurate, many abandoned years ago and nearly unusable by anything except the local wildlife, like me.

    David...
    #65
  6. FixerDave

    FixerDave KLR650 - XR200R

    Joined:
    Jul 13, 2006
    Oddometer:
    403
    Location:
    Victoria, BC, Canada
    I just did a bit of reading and it seems that nodes are not directional like ways. Thus, if only using nodes, while it would be possible to indicate difficulty on a rendered map, there would be no way of indicating direction if said difficulty was, in fact, directional. Even entrance/exit only gates/entrances are indicated by having a very short way marked "one-way".

    Like I've said before. My maps show this now and they will continue to do so. I may find a way to easily tag them such that everything but a private overlay file can be shared. Still, I'm open to working to a standard and sharing if there's common agreement.

    David...
    #66
  7. abhibeckert

    abhibeckert Long timer

    Joined:
    Feb 15, 2010
    Oddometer:
    1,757
    Location:
    Cairns, Australia
    Beware "unclassified" does not mean "no classification". What it really means is "minor public road". For roads of unknown classification, highway=road should be used.

    I agree, unclassified is probably the correct tag for many roads through parkland.
    #67
  8. abhibeckert

    abhibeckert Long timer

    Joined:
    Feb 15, 2010
    Oddometer:
    1,757
    Location:
    Cairns, Australia
    I'd love to see that script... maybe send me a PM if you ever write it.

    I have a ton of GPS tracks I haven't submitted to OSM yet, because it's just too much work... and I've already got some code for parsing GPX files.
    #68
  9. Myway

    Myway Long timer

    Joined:
    Jan 2, 2007
    Oddometer:
    3,264
    Location:
    Knobby country
    US roads tagging

    There is the network tag and operator tag and ownership

    http://www.openstreetmap.org/browse/relation/949048


    search NPS http://wiki.openstreetmap.org/w/ind...earch&search=National+Park+Service&fulltext=1






    These are three different things:
    1. Owner
    2. Jurisdiction
    3. Maintain
    1. Owner of a way/area The legally property .
    2. This is mostly a area. Border. But jurisdictions can overlap or a way in a a area can fall under jurisdiction of a other junta. I know that owners rent their area to nature management associations. This is the sign you see, their websites are not always correct, because they say they own and they mean they manage. So owner and juriditions could be different.
    3. Roads can be maintained by others, than the owner. I know that owners rent them to others for nothing if they maintain it. Legal agreement is laying underneath.

    If you have access to all this agreements you can tag it right.

    Area (closed way) and way, could not be combined in routing program, yet.

    Say do not route over a unclassified highway inside a villageborder, but use unclassified ouside the village border.
    Because mostly village/town unclassified highway are tagged wrong, must be residental.
    It is no fun riding your 4x4 through a residential area.
    #69
  10. ebel

    ebel Adventurer

    Joined:
    Feb 25, 2011
    Oddometer:
    55
    Location:
    Ireland, EU
    Yes basically I was simplifying. *However* it is possible to put data in the "public domain" in many countries (e.g. USA and sorta UK). Most (All?) things from the US federal government are in the public domain, which basically means free from copyright. You can literally do whatever you want with them, copyright-wise. Some map data was imported into OSM for the USA because it was released into the public domain ( https://wiki.openstreetmap.org/wiki/TIGER )

    Yep. Since OSM started in the UK, it uses some UK terminology, and under UK law, there are some roads that have a classification of "unclassified". Bit of a head-wreck. :)

    Careful, nearly everyone else in OSM is using "access" to refer to "are you legally allowed onto this road/into this building/through this gate/etc.". So "access=no" means "No-one is legally allowed access to this thing" to lots of people using OSM. This is probably not what you mean. "access" usually refers to "every type of thing (from walking to driving)". If you want to say "You cannot bike here" do "motorcycle=no" etc.

    Remember there's a difference between what you're legally allowed do, and what you physically can (or cannot) do. "access" is for the law.
    #70
  11. kbroderick

    kbroderick Long timer

    Joined:
    May 7, 2009
    Oddometer:
    1,125
    Location:
    Red Lodge, Montana
    Yes, I was trying to understand that distinction and how it should be coded.

    Quoted from the OSM forums,

    i.e. "highway = path" implies "access = no", "foot = yes".

    Which is counter to the standards someone was describing above. Personally, I think that it would make sense to have both highway = footpath implying access = no, foot = yes while highway = path would not imply that. With that said, I don't know how data already in the database is coded beyond what I've looked at in attempting to not get routed up USFS hiking trails.

    I'm quite familiar with the distinction between "you may legally drive this" and "you can drive this" thanks to the class 4 roads and legal trails in Vermont. :D
    #71
  12. [TASF]Overkill

    [TASF]Overkill VRSATL

    Joined:
    Aug 3, 2009
    Oddometer:
    181
    Location:
    Lynchburg, VA
    MKGMap is a map renderer. It is definitely bad practice to tag just to get the output you expect from a renderer. The writer of that render engine basically applied his interpretation of the tags. As someone getting started out writing a renderer, I would definitely rather be educated on what the tags ACTUALLY mean than encouraging people who end up using my renderer to go change OSM to match what I expect. :-)

    So far it's been nice to have my mind changed!
    #72
  13. Myway

    Myway Long timer

    Joined:
    Jan 2, 2007
    Oddometer:
    3,264
    Location:
    Knobby country
    mkgmap for making garmin maps.

    Here you see the hand of the makers of mkgmap, the angle of view. How they think. A streetview for motor_vehicle.
    Access is all about can/may you route over there. Routing is all about do i route over there. Never thought of a unpaved route versions for motor_vehicle.
    Default line style is not hardcoded.
    Default can be skiped and recreated.
    Done that for allroadmap.

    Garmin maps has a limited of codes for lines that are routable.0x01/0x13, 0x16, 0x1a, 0x1b

    Any linetag combination you could make a line from.
    If i want the highway=bridleway & owner=USFS [0x06 road_class=1 road_speed=3 resolution 21]
    Then i make a routable line of it, and with a type file i give the code 0x06 a color/the look.

    Even you can change the tag by {set motorcyle=yes}
    or a combination of tags.

    So Garmin have this button avoid unpaved road, so with the set tag you can flag what is in your revciew a unpaved road.
    So tollroad is sometimes creative used for somthing else.

    So take tags in OSM how it is. And set them so. Common rules. Use common tags.

    Then render how you want it to look like.
    #73
  14. FixerDave

    FixerDave KLR650 - XR200R

    Joined:
    Jul 13, 2006
    Oddometer:
    403
    Location:
    Victoria, BC, Canada
    I don't mind sharing but I don't think the script would help you... I'd do it in Perl to rip the img files to mp format via cGPSmapper, then rip the guts out of those (a Perl speciality), then route them through an MP2OSM script that I modified to, you know, actually work without hardcoded filenames and the like.

    For converting gpx to OSM, I'd just use JOSM. Import (via the gpx plugin), convert to a data layer, put the mapnik image underneath, and just delete anything that's duplicated. The keyboard shortcuts actually make that fairly easy, once you get the hang of them. That's what I did with all my old tracks; didn't take that long. It'd be pretty hard to script any of that, what with having to interpret that a track is actually near enough to an existing road to be a duplicate.

    David...
    #74
  15. FixerDave

    FixerDave KLR650 - XR200R

    Joined:
    Jul 13, 2006
    Oddometer:
    403
    Location:
    Victoria, BC, Canada
    Okay, so to put this back on track... (pun intended)

    We have this way and we want to tag it such that's useful for ADVriders, dualsport bikers, and maybe even dirtbikers. Once this data is in, it needs to get rendered to something useful. Do we also publish render-rules, or snippets of them, for various packages? If so, which ones?

    I agree that tagging to get an existing set of render-rules to work is a bad idea. However, there's no point in tagging a particular way if it's impossible to render them usefully. Thus, we need to consider render packages and rules for them as part of this.

    What do we want when we use a map?

    • the ways
    • how difficult they are to ride (how can this be rendered?)
    • hazards along them
    • automated routing (this is harder)
    Thus: propose a tag, see how it can be rendered... does it work for us?

    My answers --- yours will be different:

    I use Maperitive to render to tiles. I run mostly black/white maps with very thick ways in order to make them clear while riding. Thus, I have limited scope for rendering detail. However, I don't need automated routing nor do I need Garmin img maps.

    My proposed solution, as yet untested:

    • I will take various highway types and generate default difficulty levels which can be overridden by tagged values. These, I will render either dot, dash, or solid. In other words, I'll compress track/path/etc. distinctions and render ways based on difficulty instead.
    • I will create a select few hazard icons and render in either colour or size (not sure yet) to show difficulty level. I'll share the rule snippets that do this. I will modify my existing barriers to match this standard.
    • I will make extra ways that run on top of existing ways where I want to denote one-way hazards. These ways will not be tagged with anything other than my hazard info, thus they should not render anywhere except where I tell them to. Further, I'll keep them as a separate OSM file not uploaded into OSM proper. They will just render as arrows in the easy direction, likely over top the existing way if I can make that happen consistently.
    • If someone comes up with a directional hazard system that works with routing software then I'll look at migrating over and sharing my data.
    • I will start using the survey_date tag for any gps tracks I import and/or any ways I happen to ride, at least where conditions are likely to change (as in unmaintained ways).
    All I need is the difficulty level tag to use. Personally, I'm partial to the 'dirtbike:scale' tag, though I'd like to see it extended to include hazard difficulty and the like instead of just surface. Not extended in the dirtbike:scale:hazard sense but rather just extending the definitions of existing levels. Not sure of this though, I'll have to actually try writing the rules to see how it all works.


    I'll start by just tagging my private data files. If everyone decides on a different tag, it will be quick to change.


    Comments?


    David...
    #75
  16. abhibeckert

    abhibeckert Long timer

    Joined:
    Feb 15, 2010
    Oddometer:
    1,757
    Location:
    Cairns, Australia
    I wasn't planning to use it, just wanted to skim read over your source code to steal any good ideas.

    I've already spent 50 or 60 hours doing that, and it's boring as fsck. I've got a couple thousand km's of tracks sitting in a directory, which I haven't added to OSM because it's so tedious. And there's a near-bottomless list of roads near where I live that haven't been mapped yet.

    :1drink I reckon I can automate it. I've already got some of it happening with my custom iOS app, but there's more to do. At the very least I'd like to present a proposed change-set that just needs a few minor manual tweaks.
    #76
  17. abhibeckert

    abhibeckert Long timer

    Joined:
    Feb 15, 2010
    Oddometer:
    1,757
    Location:
    Cairns, Australia
    I guess my priorities are different to yours. I'm just trying to get everything on the map, and will worry about accurate tagging and the like at some later date (or let someone else do that part).

    I wanna be able to show my buddy a great riding area on an actual map, instead of satellite photos... and in more remote areas, I want a bit more confidence to calculate how much fuel I'm gonna need, etc. I don't much care how difficult it is, because I can take my bike anywhere! :D

    Have you seen dualsportmaps.com? When you import a GPX into his website, he calculates your speed at every point along the track and colour codes it. It seems to work well, speed and ride difficulty are pretty closely correlated. I've found I only need to make a few minor tweaks to the auto-calculated difficulty ratings.
    #77
  18. FixerDave

    FixerDave KLR650 - XR200R

    Joined:
    Jul 13, 2006
    Oddometer:
    403
    Location:
    Victoria, BC, Canada
    With the old CanVec data, it's mostly done around here, at least for me. Just a matter of improving accuracy, making the connections, and adding in the new stuff that I find. :1drink Oh yeah, and maybe a little tagging for the masses.

    Ya... well... I can go anywhere too :D It's just that, you know, sometimes I'm not really into the tight stuff... just lazy. :evil Well, let's say there are times when I'd rather go fast than technical :lol3

    JOSM with the gpx plugin does this and, yes, I find it quite useful. JOSM is local so no need to upload to anywhere and have to worry about sharing tracks leading to my garage full of tools. The only problem is remembering if that red section was a tough go, lunch, or a pee-stop :jjen

    David...
    #78
  19. Myway

    Myway Long timer

    Joined:
    Jan 2, 2007
    Oddometer:
    3,264
    Location:
    Knobby country
  20. [TASF]Overkill

    [TASF]Overkill VRSATL

    Joined:
    Aug 3, 2009
    Oddometer:
    181
    Location:
    Lynchburg, VA

    None of those wiki links strike me as slam dunks for how Forest Service roads should be tagged/relationed in order to show that they are specifically NFS roads, and I haven't found any solid examples that help me to grasp it.

    Thanks for the help, though!
    #80