Skip to content

Commit

Permalink
Select overground power=cable like power=line (#3226)
Browse files Browse the repository at this point in the history
* Select overground power=cable like power=line

Power cables with a location tag that says they are overground, are now
selected and rendered just like power lines, to improve the look of
substations that use gas insulated cables. Since those cables are
insulated, they have to be mapped with power=cable instead of
power=line, but this left undesirable gaps in the connections.

According to the wiki[1], cables without a location tag default to
'either underground or underwater', so they are treated as such.

[1] https://wiki.openstreetmap.org/wiki/Tag:power%3Dcable

Closes #3217.

* Change power cable query to whitelist

Per a request from @kocio-pl [1]

[1] #3226 (comment)
  • Loading branch information
M1dgard authored and kocio-pl committed May 14, 2018
1 parent cadf491 commit 6edfe1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,7 @@ Layer:
way
FROM planet_osm_line
WHERE power = 'line'
OR (power = 'cable' AND tags->'location' IN ('overground', 'overhead', 'surface', 'outdoor', 'platform'))
) AS power_line
properties:
minzoom: 14
Expand Down

0 comments on commit 6edfe1e

Please sign in to comment.