I'm doing some work to produce some piste maps of ski resorts and I have a situation which probably doesn't arise much when mapping roads and so on. Its to do with ski lifts (aerialways). Lets take the simplest lift possible as an example - a single way connecting two nodes. The way contains the name of the lift as a standard property tag When looking at a piste map it is very helpful to know where the entrance to a lift is, i.e. which end you are allowed to get on. I've created maps in the past from my own data (not OSM data), and found it very useful to have the name of the lift next to the base station as well as along the lift itself, like below: Now I want to achieve this using OSM data. But, if the name is a property of the way, I can't see any possibility to associate it with one of the nodes other than by duplicating the name property in the node as well. My question is therefore, is this a BAD thing to do? My gut feeling from a couple of decades working in IT is that when it is necessary to duplicate data it usually means something isn't designed correctly. I've considered relations, but it seems that the name would need to be duplicated in the relation as well so that doesn't really help. Any insights would be welcome. asked 21 Jan '12, 13:44 Skicat |
I can't see any reason why it would be a problem. You have the aerialway=<whatever> tag on the way along with the name of the lift, and aerialway=station on the station nodes along with the name of the station. In your example they look different anyway, if I'm looking in the correct place ("Teleski Ouilette" vs just "Ouilette") for example. answered 21 Jan '12, 14:07 EdLoach ♦ Yes, the reason the node-names are different to the way-names is that I have the renderer insert "telesiege", "teleski" or whatever according to the type of the way. I don't do that with nodes.
(21 Jan '12, 14:20)
Skicat
I tried visiting http://www.openpistemap.org to see how the lifts rendered there, but there seem to be some technical issues at present. Anyway, the lift and the station are still separate objects. If they have the same name, I don't see an issue with tagging them both with the name.
(21 Jan '12, 15:45)
EdLoach ♦
I think I agree. I suppose I was looking for some facility that could apply a name to a node based on the
(21 Jan '12, 16:56)
Skicat
1
I've marked this as the accepted answer as it most closely addresses the "Is duplicate data bad?" question. Thanks Ed.
(24 Jan '12, 14:11)
Skicat
|
That is why you have the way go from the entrance to the exit. Then you can render an arrow or something in the direction of the lift. The information is not duplicated and you still allow the entrance, the exit and the lift to have different names. answered 21 Jan '12, 17:18 Gnonthgol ♦ Yep, if you look at the map above you'll see it does indeed have "arrow flights" in the direction of the lift. I still think the map is improved by displaying the name of the lifts at their base stations though.
(24 Jan '12, 14:09)
Skicat
|
You could use the entrance tag on a node at the entrance to the lift. See http://wiki.openstreetmap.org/wiki/Proposed_features/entrance answered 21 Jan '12, 16:38 ChrisH I have considered that tag. It has some odd usage values such as [yes|exit|both], however it could be used to identify the entrance to an aerialway. It doesn't solve the problem of having to duplicate the name though.
(21 Jan '12, 16:52)
Skicat
You can then justifiably use the name tag next to the entrance tag - you are naming the entrance.
(21 Jan '12, 16:58)
ChrisH
I had effectively already done something like this, but used a "aerialway:access" tag with values [entry|exit|both]. I'm in two minds whether to change these to use the "entrance" tag or not. I've only done a few but there's an argument that says don't create a new tag when a suitable one already exists. Then again, "entrance" does seem to be more about buildings, and ski lifts don't always have buildings. I'm trying to encapsulate whether one can "board", "alight" or both from each end of the lift. "entrance" is close but not quite 100%. Plus I still think the tag values are incongruous.
(24 Jan '12, 14:18)
Skicat
|