Do not show seas at z0

This commit is contained in:
Lukas Martinelli 2017-01-18 10:19:39 +01:00
parent d5350ee535
commit 7f4ca37a6a

View File

@ -26,7 +26,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, class t
FROM osm_marine_point FROM osm_marine_point
WHERE geometry && bbox AND ( WHERE geometry && bbox AND (
place = 'ocean' place = 'ocean'
OR (zoom_level <= "rank" AND "rank" IS NOT NULL) OR (zoom_level >= 1 AND zoom_level <= "rank" AND "rank" IS NOT NULL)
OR (zoom_level >= 8) OR (zoom_level >= 8)
); );
$$ LANGUAGE SQL IMMUTABLE; $$ LANGUAGE SQL IMMUTABLE;