kopia lustrzana https://github.com/openmaptiles/openmaptiles
Add grade 1 tracks to paved (#1485)
This PR sets `surface=paved` for `highway=track` + `tracktype=grade1` if no other value of `surface` is set. Roads tagged in this way are [generally paved](https://wiki.openstreetmap.org/wiki/Key:tracktype) and therefore encoding them as a paved road is appropriate.pull/1481/head^2
rodzic
d2c69b0d45
commit
5e9b7c475d
|
@ -48,7 +48,7 @@ CREATE OR REPLACE FUNCTION surface_value(surface text) RETURNS text AS
|
||||||
$$
|
$$
|
||||||
SELECT CASE
|
SELECT CASE
|
||||||
WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'concrete', 'concrete:lanes', 'concrete:plates', 'metal',
|
WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'concrete', 'concrete:lanes', 'concrete:plates', 'metal',
|
||||||
'paving_stones', 'sett', 'unhewn_cobblestone', 'wood') THEN 'paved'
|
'paving_stones', 'sett', 'unhewn_cobblestone', 'wood', 'grade1') THEN 'paved'
|
||||||
WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel',
|
WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel',
|
||||||
'gravel_turf', 'ground', 'ice', 'mud', 'pebblestone', 'salt', 'sand', 'snow', 'woodchips')
|
'gravel_turf', 'ground', 'ice', 'mud', 'pebblestone', 'salt', 'sand', 'snow', 'woodchips')
|
||||||
THEN 'unpaved'
|
THEN 'unpaved'
|
||||||
|
|
|
@ -180,6 +180,9 @@ tables:
|
||||||
- name: construction
|
- name: construction
|
||||||
key: construction
|
key: construction
|
||||||
type: string
|
type: string
|
||||||
|
- name: tracktype
|
||||||
|
key: tracktype
|
||||||
|
type: string
|
||||||
- *ref
|
- *ref
|
||||||
- *network
|
- *network
|
||||||
- *z_order
|
- *z_order
|
||||||
|
|
|
@ -368,7 +368,7 @@ FROM (
|
||||||
foot,
|
foot,
|
||||||
horse,
|
horse,
|
||||||
mtb_scale,
|
mtb_scale,
|
||||||
surface_value(surface) AS "surface",
|
surface_value(COALESCE(NULLIF(surface, ''), tracktype)) AS "surface",
|
||||||
hl.z_order
|
hl.z_order
|
||||||
FROM osm_highway_linestring hl
|
FROM osm_highway_linestring hl
|
||||||
LEFT OUTER JOIN osm_transportation_name_network n ON hl.osm_id = n.osm_id
|
LEFT OUTER JOIN osm_transportation_name_network n ON hl.osm_id = n.osm_id
|
||||||
|
|
Ładowanie…
Reference in New Issue