From 2738c649caeb870314c6d5714a72f04a13401f4e Mon Sep 17 00:00:00 2001 From: zstadler Date: Sat, 26 Oct 2019 22:52:14 +0300 Subject: [PATCH] Fix typos --- layers/transportation/layer.sql | 8 +++----- layers/transportation/mapping.yaml | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/layers/transportation/layer.sql b/layers/transportation/layer.sql index 928f63b..441d08e 100644 --- a/layers/transportation/layer.sql +++ b/layers/transportation/layer.sql @@ -8,7 +8,7 @@ $$ LANGUAGE SQL IMMUTABLE STRICT; CREATE OR REPLACE FUNCTION layer_transportation(bbox geometry, zoom_level int) RETURNS TABLE(osm_id bigint, geometry geometry, class text, subclass text, ramp int, oneway int, brunnel TEXT, service TEXT, layer INT, level INT, -indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale, surface TEXT) AS $$ +indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale TEXT, surface TEXT) AS $$ SELECT osm_id, geometry, CASE @@ -50,8 +50,7 @@ indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale, surface TEXT) AS $$ NULL::boolean AS is_ramp, NULL::int AS is_oneway, NULL as man_made, NULL::int AS layer, NULL::int AS level, NULL::boolean AS indoor, NULL as bicycle, NULL as foot, NULL as horse, NULL as mtb_scale, - NULL AS surface, - z_order + NULL AS surface, z_order FROM osm_transportation_merge_linestring_gen7 WHERE zoom_level = 4 UNION ALL @@ -198,7 +197,7 @@ indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale, surface TEXT) AS $$ NULL::boolean AS is_ramp, NULL::int AS is_oneway, NULL as man_made, NULL::int AS layer, NULL::int AS level, NULL::boolean AS indoor, NULL as bicycle, NULL as foot, NULL as horse, NULL as mtb_scale, - NULL as surface, z_order + NULL as surface, z_order FROM osm_railway_linestring_gen5 WHERE zoom_level = 8 AND railway='rail' AND service = '' and usage='main' @@ -326,7 +325,6 @@ indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale, surface TEXT) AS $$ is_bridge, is_tunnel, is_ford, is_ramp, is_oneway, NULL as man_made, layer, NULL::int AS level, NULL::boolean AS indoor, NULL as bicycle, NULL as foot, NULL as horse, NULL as mtb_scale, - z_order NULL AS surface, z_order FROM osm_shipway_linestring_gen1 WHERE zoom_level = 12 diff --git a/layers/transportation/mapping.yaml b/layers/transportation/mapping.yaml index 7d925a7..1a5c229 100644 --- a/layers/transportation/mapping.yaml +++ b/layers/transportation/mapping.yaml @@ -148,6 +148,7 @@ horse_field: &horse mtb_scale_field: &mtb_scale key: mtb:scale name: mtb_scale + type: string surface_field: &surface key: surface name: surface