Include country and state select direcdtly in layer func

This commit is contained in:
Lukas Martinelli
2016-11-28 16:03:42 +00:00
parent 2f35ab3ee1
commit 6fb20ab650
5 changed files with 17 additions and 41 deletions

View File

@@ -40,6 +40,5 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, place c
OR (zoom_level = 9 AND (gridrank <= 8 OR "rank" IS NOT NULL))
OR (zoom_level = 10 AND (gridrank <= 12 OR "rank" IS NOT NULL))
OR (zoom_level BETWEEN 11 AND 12 AND (gridrank <= 14 OR "rank" IS NOT NULL))
OR (zoom_level >= 13)
ORDER BY "rank" ASC;
OR (zoom_level >= 13);
$$ LANGUAGE SQL IMMUTABLE;