Add default value to network attribute of layer_transportation_name

pull/185/head
jirik 2017-03-01 15:59:10 +01:00
rodzic 5db1b0e80e
commit 5568d3ba44
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -9,7 +9,12 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, ref tex
COALESCE(NULLIF(name_en, ''), NULLIF(name, '')) AS name_en,
NULLIF(ref, ''), NULLIF(LENGTH(ref), 0) AS ref_length,
--TODO: The road network of the road is not yet implemented
network::text,
case
when network is not null
then network::text
when length(coalesce(ref, ''))>0
then 'motorway'
end as network,
highway_class(highway) AS class
FROM (