NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm working with the tag=power (power lines and similar) and seems like a lot of ways are not contained in relations. Do you know why is this happening and what will be the evolution of this data in the future? Relations will disappear or the existent ways will be included in new relations?

asked 22 Aug '12, 12:22

JorgePM's gravatar image

JorgePM
51224
accept rate: 0%

edited 22 Aug '12, 16:04

Sanderd17's gravatar image

Sanderd17
1.1k51637

1

Why do you think every way with a power tag should belong to a relation?

(22 Aug '12, 13:14) scai ♦

Because there a lot of ways with similar characteristics than the ones that belong to relations, not being part of them. So for example, I tried to get all the 380kV lines and if you go for the relations, a lot of ways are left behind (not being shown) while they are exactly the same as the ones inside the relations. Maybe I'm missing something, but this is my experience working with the data. Maybe I'm missing the point about what relations really represent.

(22 Aug '12, 14:30) JorgePM

Yep, it's better to go via ways.

In fact, the best is to combine ways and relation search. Search for both and apply the tags of the relation to the ways. Sometimes, if someone decides some ways fits in a relation, they don't add the tags to the ways any more.

About that relation, it does look like all those ways have the same number of lines and the same voltage, and they follow each other up. So one could argue they belong in a relation. Although the middle line has the suspicious tag source=guessed. And together with those weird turns, it makes the entire relation a bit incredible.

permanent link

answered 22 Aug '12, 15:56

Sanderd17's gravatar image

Sanderd17
1.1k51637
accept rate: 31%

relations are there to build transmission circuits, that's why they are composed of several substations and ways.

(20 Aug '15, 15:36) widedangel

Please read this part of the OSM wiki, it will clarify your view on relations: http://wiki.openstreetmap.org/wiki/Relations/Relations_are_not_Categories

Next to that, you can use xapi or the overpass API to gather features with the same tags.

permanent link

answered 22 Aug '12, 14:39

Sanderd17's gravatar image

Sanderd17
1.1k51637
accept rate: 31%

edited 22 Aug '12, 14:40

1

Relations in this case are mostly used for grouping ways (lines) going from one substation to another (sometimes they include the substation, some other times they don't). Then some other lines with the same behaviour do not belong to any relation. It means there are ways that if you put them together, will create a relation similar to the ones already exist. So what is the protocol for a way to form a relation or not when both ways the one that belongs to the relation and the one that it doesn't, are the same?

(22 Aug '12, 14:48) JorgePM

Like when you group the different pieces of way and the different houses of a street into a relation. Some mappers consider it valuable (because it makes sure the house is linked to the right street), others don't (because there is too much other work, and the chance that a house is assigned to a wrong way is small).

The same goes for power lines. Some think it's valuable to put a relation over the line (because that entity is one power line), others don't because there is too much other work.

(22 Aug '12, 15:09) Sanderd17

hmmm but then in this case relations are useless. Just to show my point, I'm working with the German transmission grid. Originally there were about 3.5k relations and about 150k ways. After some heavy data mining I have about 6.5k "new" relations formed by ways jointed together going from one substation to another. All the relations, new and old behave the same, same tags, same characteristics, same element. So if I want to perform any kind of analysis relations will only produce errors and not any given values because they are hiding lines.

(22 Aug '12, 15:14) JorgePM

Even I tried to get some visualization not based on tiles server using OpenLayers and if you base it in relations you get a third of the lines that you get if you base it on ways... So when and/or why the relations are there if they are aleatory grouping elements or not. (They don't have anything in common, not the same TSO, nor voltage, just the user decides when to include the ways in a relation or not)

(22 Aug '12, 15:17) JorgePM
1

can you give a link to such a relation, maybe the OSM data has a problem, or somebody tried to mass-edit it.

(22 Aug '12, 15:23) Sanderd17
1

Sure, don't get me wrong, I'm trying to be constructive but the lack of coherence with the relations gave me some good headaches. http://www.openstreetmap.org/?relation=1728819 That relation ends on the left into a substation (Denzlingen), the line that comes out from that substation are a group of ways. None of them belong to any relation. There are a good couple of thousands more cases like this. So when you try to analise what lines are available, if you go through relations, you will miss a lot of them. So it is better to go directly through ways... (PS: my data comes from geofabrik.de)

(22 Aug '12, 15:38) JorgePM

can you make your last comment the answer for this question? I believe it is the correct one. I absolutely agree with the relations-ways combination strategy and it should be specified in some point of the wiki.

(22 Aug '12, 16:00) JorgePM

I have done so, about the wiki, well, lets just say it also needs some work.

There is a lot quality data in OSM, but you need to study the data a lot before you can work with it.

(22 Aug '12, 16:03) Sanderd17
showing 5 of 8 show 3 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×236
×24

question asked: 22 Aug '12, 12:22

question was seen: 5,842 times

last updated: 20 Aug '15, 18:53

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum