-
Notifications
You must be signed in to change notification settings - Fork 838
Power portals render #2107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Render them like power=pole? |
Power lines without anything at their end looks weird. I also think that rendering https://github.com/gravitystorm/openstreetmap-carto/blob/master/power.mss |
Hi Tomasz, What about large power portal mapped as ways like this ? I use to map them like this in large substations because they can be really huge At the intersection with power lines it's usual to find power=insultator objects |
I think they should be rendered as power lines with |
I prefer solid line with dark look. It gives me proper feel of line termination plus it uses the visual feature which is hard to be confused with anything other in this context. |
It looks very good, so I vote for dots for portal nodes and solid line (it's a little bit too prominent, could be a little bit lighter, I think) for portal linear ways. @gustavecha Are you going to make a PR? |
Agreed on the solid dark line. |
Hi, nice to have your feedbacks, thanks I didn't render it on mapnik but only draw it on paint.net Here are project.mml edits : - id: power-portals-way
geometry: way
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way
FROM planet_osm_lines
WHERE power = 'portal'
) AS power_portals
properties:
minzoom: 16
- id: power-portals-node
geometry: point
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
node
FROM planet_osm_point
WHERE power = 'portal'
) AS power_portals
properties:
minzoom: 16
- id: power-insulators-node
geometry: point
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way
FROM planet_osm_point
WHERE power = 'insulator'
) AS power_insulators
properties:
minzoom: 16 Here is the corresponding power.mss adds I'd use if I have to : #power-portals-way {
[zoom >= 16] {
width: 3;
color:#212121;
}
}
#power-portals-node {
[zoom >= 16] {
marker-file: url('symbols/square.svg');
marker-fill: #212121;
marker-width: 3;
}
}
#power-insulators-node {
[zoom >= 16] {
marker-file: url('symbols/square.svg');
marker-fill: #00960F;
marker-width: 3;
}
} All the best |
@gustavecha Could you prepare fork and initiate PR with this code? I would test it then. |
Hi,
Recently, power=portal ways and nodes got a bit more used in the db.
http://wiki.openstreetmap.org/wiki/Tag:power%3Dportal
As shown on wiki, power portals may have a strong visual impact and can be used for orientation when they stand in the country.
It may be useful to draw a thinner grey line than power lines over power=portal ways on zoom >= 15
Those structures are often big, as seen on pictures.
http://wiki.openstreetmap.org/wiki/File:Power_substation_portal.jpg
Wiki describes two different options for mapping power portals : ways and nodes but nodes can't easily be rendered on carto for such features.
I think adding a rendering rule for ways only (which is more complete than using power=portal over a single node) is enough.
You can look here to see how those objects are used
https://www.openstreetmap.org/#map=17/47.32641/4.68773
https://www.openstreetmap.org/way/407818672
All the best
François
The text was updated successfully, but these errors were encountered: