diff --git a/data.yml b/data.yml index 35762923..285e76f3 100644 --- a/data.yml +++ b/data.yml @@ -215,6 +215,9 @@ Layer: table: |- ( SELECT geom, scalerank FROM ( + SELECT * FROM urban_z4 + WHERE z(!scale_denominator!) = 4 + UNION ALL SELECT * FROM urban_z5 WHERE z(!scale_denominator!) = 5 UNION ALL diff --git a/schema/layers/urban.sql b/schema/layers/urban.sql index 9d0ea153..c9712283 100644 --- a/schema/layers/urban.sql +++ b/schema/layers/urban.sql @@ -1,3 +1,9 @@ +CREATE OR REPLACE VIEW urban_z4 AS ( + SELECT geom, scalerank + FROM ne_50m_urban_areas + WHERE scalerank <= 2 +); + CREATE OR REPLACE VIEW urban_z5 AS ( SELECT geom, scalerank FROM ne_50m_urban_areas