kopia lustrzana https://github.com/openmaptiles/openmaptiles
rodzic
c11a4cd998
commit
63f6915fab
|
@ -72,15 +72,9 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text,
|
|||
highway,
|
||||
network,
|
||||
z_order,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN layer
|
||||
ELSE NULL::int
|
||||
END AS layer,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN "level"
|
||||
ELSE NULL::int
|
||||
END AS "level",
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN indoor
|
||||
ELSE NULL::boolean
|
||||
END AS indoor
|
||||
layer,
|
||||
"level",
|
||||
indoor
|
||||
FROM osm_transportation_name_linestring
|
||||
WHERE zoom_level = 12
|
||||
AND LineLabel(zoom_level, COALESCE(NULLIF(name, ''), ref), geometry)
|
||||
|
@ -100,15 +94,9 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text,
|
|||
highway,
|
||||
network,
|
||||
z_order,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN layer
|
||||
ELSE NULL::int
|
||||
END AS layer,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN "level"
|
||||
ELSE NULL::int
|
||||
END AS "level",
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN indoor
|
||||
ELSE NULL::boolean
|
||||
END AS indoor
|
||||
layer,
|
||||
"level",
|
||||
indoor
|
||||
FROM osm_transportation_name_linestring
|
||||
WHERE zoom_level = 13
|
||||
AND LineLabel(zoom_level, COALESCE(NULLIF(name, ''), ref), geometry)
|
||||
|
@ -127,15 +115,9 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text,
|
|||
highway,
|
||||
network,
|
||||
z_order,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN layer
|
||||
ELSE NULL::int
|
||||
END AS layer,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN "level"
|
||||
ELSE NULL::int
|
||||
END AS "level",
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN indoor
|
||||
ELSE NULL::boolean
|
||||
END AS indoor
|
||||
layer,
|
||||
"level",
|
||||
indoor
|
||||
FROM osm_transportation_name_linestring
|
||||
WHERE zoom_level >= 14
|
||||
|
||||
|
|
|
@ -23,9 +23,15 @@ CREATE MATERIALIZED VIEW osm_transportation_name_network AS (
|
|||
else hl.ref
|
||||
end as ref,
|
||||
hl.highway,
|
||||
hl.level,
|
||||
hl.layer,
|
||||
hl.indoor,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN layer
|
||||
ELSE NULL::int
|
||||
END AS layer,
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN "level"
|
||||
ELSE NULL::int
|
||||
END AS "level",
|
||||
CASE WHEN highway IN ('footway', 'steps') THEN indoor
|
||||
ELSE NULL::boolean
|
||||
END AS indoor,
|
||||
ROW_NUMBER() OVER(PARTITION BY hl.osm_id
|
||||
ORDER BY rm.network_type) AS "rank",
|
||||
hl.z_order
|
||||
|
|
Ładowanie…
Reference in New Issue