Add subclass of paths in transportation

pull/353/head
jirik 2017-11-08 16:57:28 +01:00 zatwierdzone przez Jiri Kozel
rodzic 7792b81a02
commit 1f129c4184
2 zmienionych plików z 15 dodań i 2 usunięć

Wyświetl plik

@ -18,6 +18,9 @@ ramp int, oneway int, brunnel TEXT, service TEXT) AS $$
END AS class,
CASE
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
END AS subclass,
-- All links are considered as ramps as well

Wyświetl plik

@ -38,9 +38,11 @@ layer:
- ferry
subclass:
description: |
Distinguish more specific railway classes:
Distinguish more specific classes of railway and path:
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:
- rail
- narrow_gauge
@ -50,6 +52,14 @@ layer:
- light_rail
- monorail
- tram
- pedestrian
- path
- footway
- cycleway
- steps
- bridleway
- corridor
- platform
brunnel:
description: |
Mark whether way is a tunnel or bridge.