-
Notifications
You must be signed in to change notification settings - Fork 819
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
Runway, taxiway areas should not be rendered #4340
Comments
If we do want to render these areas, I believe we ought to change the linear runway rendering so it is apparent if it is missing, e.g. have a dashed centerline which would render above the areas. |
Was previously discussed in #1853, see in particular #1853 (comment) Back then there were objections to removing polygons rendering of runways but it is well possible the public opinion has shifted since then. As pointed out in the comment linked above currently high zoom runway and taxiway line rendering seems unnecessarily ugly and thereby encouraging polygon drawing. |
I like that idea. Runways are huge in terms of size, and could benefit from such detailing. Runways always look off to me when zooming in or out, which is probably due to their real-world massive width. Is there a practical objection to using |
The reason for closing #1853 was the complexity of the method (which is due to the lack of native support for ground unit rendering in Mapnik/Carto). In other context i have more recently used a different approach to this by the way - encapsulating the necessary complexity in a function:
If this is preferable here i am not sure - just an option to consider. |
How do I call |
|
Promising start for a bit of experimenting. Bugs:
diff --git a/project.mml b/project.mml
index 22869c1..1217e79 100644
--- a/project.mml
+++ b/project.mml
@@ -1035,11 +1035,23 @@ Layer:
(SELECT
way,
aeroway,
- bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct') AS bridge
- FROM planet_osm_line
- WHERE aeroway IN ('runway', 'taxiway')
- ORDER BY bridge NULLS FIRST,
- CASE WHEN aeroway = 'runway' THEN 1 ELSE 0 END
+ bridge,
+ width,
+ sf*width::real AS area_width,
+ sf AS line_width
+ FROM
+ (SELECT
+ way,
+ aeroway,
+ bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct') AS bridge,
+ tags->'width' AS width,
+ scale_factor(way)*(1/!scale_denominator!)*10000 AS sf
+ FROM planet_osm_line
+ WHERE aeroway IN ('runway', 'taxiway')
+ ORDER BY bridge NULLS FIRST,
+ CASE WHEN aeroway = 'runway' THEN 1 ELSE 0 END
+ ) _
) AS aeroways
properties:
cache-features: true
diff --git a/style/roads.mss b/style/roads.mss
index c750ba2..255663c 100644
--- a/style/roads.mss
+++ b/style/roads.mss
@@ -2975,12 +2975,12 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */
}
::fill {
line-color: @runway-fill;
- line-width: 2;
- [zoom >= 12] { line-width: 4; }
- [zoom >= 13] { line-width: 6; }
- [zoom >= 14] { line-width: 12; }
- [zoom >= 15] { line-width: 18; }
- [zoom >= 16] { line-width: 24; }
+ line-width: [area_width];
+ }
+ ::centerline {
+ line-width: [line_width];
+ line-color: white;
+ line-dasharray: 20,30;
}
}
} |
As said the conversion factor between pixels and map units is
|
This screenshot includes support for |
Expected behavior
aeroway=runway
oraeroway=taxiway
should be rendered, similar to linearhighway
features.aeroway=runway
mapped as a closed way or multipolygon, since we don’t renderarea:aeroway=
orarea:highway=
width=
tag we are unfairly encouraging double-mapping of the area + linear way instead of just linear way +width=
(used on 23% of runway features) which is usually providing just as much information.Actual behavior
aeroway=runway
andaeroway=taxiway
mapped as closed ways (or multipolygons) are rendered as as a polygon with color@aeroway-fill
=#bbc
- same as linear runways and taxiways.openstreetmap-carto/style/roads.mss
Lines 2706 to 2744 in 3618861
Links and screenshots illustrating the problem
https://www.openstreetmap.org/#map=17/34.94902/-117.86569
Extra-wide runways mapped as areas (though they also have linear ways down the center at least)
https://www.openstreetmap.org/#map=18/36.02450/-119.05629
Runway and taxiways mapped only as areas, linear runway way is missing.
The text was updated successfully, but these errors were encountered: