Remove unnecessary ramp tagging (#1266)
This PR removes unnecessary `ramp` tagging from the `transportation` layer. The `ramp` tag is used for two situations. First, it is set for all `highway=***_link` tags to indicate a highway ramp. The second situation is when the `ramp` tag is set on a highway object, which indicates the presence of a ramp, such as one that would be used for a wheelchair. `ramp=0` is a reasonable default in these situations; by removing cases of `ramp=0` and presenting only `ramp=1` to the tiles, we can save considerable size in the tiles. Additionally, there appears to be a bug in which all objects tagged `highway=steps` are inexplicably tagged `ramp=1`. The changes as follows: 1. Remove `ramp=0` where it appears in the tile. 2. `highway=steps` no longer assumes `ramp=1` in cases where `ramp=*` is not explicitly set. In the current behavior, `ramp=0` is tagged only in at z13+ but suppressed in lower zooms:    This PR unifies `ramp=0` suppression between z13+ and z12-.
This commit is contained in:
parent
be37f3a565
commit
cded42349f
@ -53,9 +53,9 @@ SELECT osm_id,
|
|||||||
NULLIF(network, '') AS network,
|
NULLIF(network, '') AS network,
|
||||||
-- All links are considered as ramps as well
|
-- All links are considered as ramps as well
|
||||||
CASE
|
CASE
|
||||||
WHEN highway_is_link(highway) OR highway = 'steps'
|
WHEN highway_is_link(highway)
|
||||||
THEN 1
|
OR is_ramp
|
||||||
ELSE is_ramp::int END AS ramp,
|
THEN 1 END AS ramp,
|
||||||
is_oneway::int AS oneway,
|
is_oneway::int AS oneway,
|
||||||
brunnel(is_bridge, is_tunnel, is_ford) AS brunnel,
|
brunnel(is_bridge, is_tunnel, is_ford) AS brunnel,
|
||||||
NULLIF(service, '') AS service,
|
NULLIF(service, '') AS service,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user