Consider also buildings with levels=null

pull/340/merge
Jiri Kozel 2017-10-31 09:51:55 +01:00
rodzic 1195126c90
commit a5cf15bdbd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ RETURNS TABLE(geometry geometry, osm_id bigint, render_height int, render_min_he
floor(COALESCE(min_height, min_level*3.66,0))::int AS render_min_height FROM
osm_all_buildings
WHERE
levels < 1000 AND
(levels IS NULL OR levels < 1000) AND
zoom_level >= 14 AND geometry && bbox
) AS zoom_levels
ORDER BY render_height ASC, ST_YMin(geometry) DESC;