Add subclass of paths in transportation
This commit is contained in:
parent
7792b81a02
commit
1f129c4184
@ -18,6 +18,9 @@ ramp int, oneway int, brunnel TEXT, service TEXT) AS $$
|
|||||||
END AS class,
|
END AS class,
|
||||||
CASE
|
CASE
|
||||||
WHEN railway IS NOT NULL THEN railway
|
WHEN railway IS NOT NULL THEN railway
|
||||||
|
WHEN (highway IS NOT NULL OR public_transport IS NOT NULL)
|
||||||
|
AND highway_class(highway, public_transport) = 'path'
|
||||||
|
THEN COALESCE(NULLIF(public_transport, ''), highway)
|
||||||
ELSE NULL
|
ELSE NULL
|
||||||
END AS subclass,
|
END AS subclass,
|
||||||
-- All links are considered as ramps as well
|
-- All links are considered as ramps as well
|
||||||
|
|||||||
@ -38,9 +38,11 @@ layer:
|
|||||||
- ferry
|
- ferry
|
||||||
subclass:
|
subclass:
|
||||||
description: |
|
description: |
|
||||||
Distinguish more specific railway classes:
|
Distinguish more specific classes of railway and path:
|
||||||
Subclass is value of the
|
Subclass is value of the
|
||||||
[`railway`](http://wiki.openstreetmap.org/wiki/Key:railway) tag.
|
[`railway`](http://wiki.openstreetmap.org/wiki/Key:railway),
|
||||||
|
[`highway`](http://wiki.openstreetmap.org/wiki/Key:highway) (for paths), or
|
||||||
|
[`public_transport`](http://wiki.openstreetmap.org/wiki/Key:public_transport) (for platforms) tag.
|
||||||
values:
|
values:
|
||||||
- rail
|
- rail
|
||||||
- narrow_gauge
|
- narrow_gauge
|
||||||
@ -50,6 +52,14 @@ layer:
|
|||||||
- light_rail
|
- light_rail
|
||||||
- monorail
|
- monorail
|
||||||
- tram
|
- tram
|
||||||
|
- pedestrian
|
||||||
|
- path
|
||||||
|
- footway
|
||||||
|
- cycleway
|
||||||
|
- steps
|
||||||
|
- bridleway
|
||||||
|
- corridor
|
||||||
|
- platform
|
||||||
brunnel:
|
brunnel:
|
||||||
description: |
|
description: |
|
||||||
Mark whether way is a tunnel or bridge.
|
Mark whether way is a tunnel or bridge.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user