nulling subclass when not present (#1132)
PR #1119 (adding support for `highway=motorway_junction`) missed a few cases where NULLIF functions were needed in order to suppress empty-string `subclass` tags from appearing in vector tiles, resulting in unnecessary `subclass` entries on `transportation_name` objects where it was not needed, for example:  This PR adds the missing NULLIF function so that those empty tags are suppressed: 
This commit is contained in:
parent
a0847b85f1
commit
3f70b878e2
@ -37,7 +37,7 @@ FROM (
|
|||||||
ELSE NULLIF(hl.ref, '')
|
ELSE NULLIF(hl.ref, '')
|
||||||
END AS ref,
|
END AS ref,
|
||||||
hl.highway,
|
hl.highway,
|
||||||
hl.construction AS subclass,
|
NULLIF(hl.construction, '') AS subclass,
|
||||||
brunnel(hl.is_bridge, hl.is_tunnel, hl.is_ford) AS brunnel,
|
brunnel(hl.is_bridge, hl.is_tunnel, hl.is_ford) AS brunnel,
|
||||||
CASE WHEN highway IN ('footway', 'steps') THEN layer END AS layer,
|
CASE WHEN highway IN ('footway', 'steps') THEN layer END AS layer,
|
||||||
CASE WHEN highway IN ('footway', 'steps') THEN level END AS level,
|
CASE WHEN highway IN ('footway', 'steps') THEN level END AS level,
|
||||||
@ -303,7 +303,7 @@ BEGIN
|
|||||||
ELSE NULLIF(hl.ref, '')
|
ELSE NULLIF(hl.ref, '')
|
||||||
END AS ref,
|
END AS ref,
|
||||||
hl.highway,
|
hl.highway,
|
||||||
hl.subclass,
|
NULLIF(hl.subclass, '') AS subclass,
|
||||||
brunnel(hl.is_bridge, hl.is_tunnel, hl.is_ford) AS brunnel,
|
brunnel(hl.is_bridge, hl.is_tunnel, hl.is_ford) AS brunnel,
|
||||||
CASE WHEN highway IN ('footway', 'steps') THEN layer END AS layer,
|
CASE WHEN highway IN ('footway', 'steps') THEN layer END AS layer,
|
||||||
CASE WHEN highway IN ('footway', 'steps') THEN level END AS level,
|
CASE WHEN highway IN ('footway', 'steps') THEN level END AS level,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user