Street lights as power poles in Haapsalu (mass edit question)

Problem

Majority of street lights are mapped as power poles in Haapsalu instead of street lights. Talking of ~1700 lights (OverPass Turbo query, screenshot of below and query below). Also note #4885492. I have checked on-site (where humanly possible) and it really seems like a human error: an incorrect tag was chosen. OR the lighting has changed significantly since 2015, when the edit was made.

OverPass Query
[out:json][timeout:25];
// Define your area
{{geocodeArea:Haapsalu}}->.searchArea;

// Find all power=pole nodes in the area
node["power"="pole"](area.searchArea)->.allpoles;

// Find all power=line ways in the area
way["power"="line"](area.searchArea)->.lines;

// Find all poles that are part of power lines
node(w.lines)["power"="pole"]->.connectedpoles;

// Get poles that are NOT connected to power lines
(.allpoles; - .connectedpoles;);
out body;

Possible Solution

OverPass query in JOSM + mass edit of the street lights in question.

What’s the issue then?

Is it OK to do so? It is easier to ask for forgiveness than for permission but would rather avoid reverting it.

I think first step could be handling nodes inserted in changeset 34776751 that haven’t been updated yet. I can’t run overpass right now, but i guess first step could take care of like 1500..1600 nodes. Then remaining poles would need more nuanced approach.

If you wish, you could also use advanced techniques with postpass, such as identifying nodes that are not within 15m of street centerline and analyse them more thoroughly.

Speaking of streetlights, in later phases i suggest something should be done about Kristiine’s streetlights. At some point i accidentally mapped some streetlights twice. Tallinn has public dataset of streetlight locations, but idk where it can be accessed.

1 Like

I agree with @fghj753 that we need to filter by the person who added most of those street lights, and then the automatic retagging is fine. I’ve confirmed with Google Street View that those are indeed lamps (on poles) and not poles. Maybe we could also add support=pole to those.

1 Like

Finding the 1817 created nodes is not an issue. How to validate if the nodes exist? :thinking: Some are deleted or changed.

Tallinn public streetlight data is something that I’m curious about but requires a separate topic, IMHO.

I guess you want to modify your original query like this: overpass turbo

1 Like

Done. Please review the changeset at your leisure.

Thank you all for your input!