kopia lustrzana https://github.com/openmaptiles/openmaptiles
Fix missing state and province boundaries at Z4 and Z5
rodzic
35786ee64c
commit
db60ae7f40
|
@ -42,7 +42,7 @@ CREATE OR REPLACE VIEW boundary_z4 AS (
|
|||
UNION ALL
|
||||
SELECT geometry, 4 AS admin_level, false AS disputed, false AS maritime
|
||||
FROM ne_10m_admin_1_states_provinces_lines
|
||||
WHERE scalerank <= 3 AND featurecla = 'Adm-1 boundary'
|
||||
WHERE scalerank <= 3 AND min_zoom <= 7
|
||||
UNION ALL
|
||||
SELECT geometry, admin_level, disputed, maritime
|
||||
FROM osm_border_linestring_gen10
|
||||
|
@ -59,7 +59,7 @@ CREATE OR REPLACE VIEW boundary_z5 AS (
|
|||
UNION ALL
|
||||
SELECT geometry, 4 AS admin_level, false AS disputed, false AS maritime
|
||||
FROM ne_10m_admin_1_states_provinces_lines
|
||||
WHERE scalerank <= 7 AND featurecla = 'Adm-1 boundary'
|
||||
WHERE scalerank <= 7 AND min_zoom <= 8
|
||||
UNION ALL
|
||||
SELECT geometry, admin_level, disputed, maritime
|
||||
FROM osm_border_linestring_gen9
|
||||
|
@ -165,4 +165,4 @@ RETURNS TABLE(geometry geometry, admin_level int, disputed int, maritime int) AS
|
|||
-- etldoc: boundary_z13 -> layer_boundary:z13
|
||||
SELECT * FROM boundary_z13 WHERE geometry && bbox AND zoom_level >= 13
|
||||
) AS zoom_levels;
|
||||
$$ LANGUAGE SQL IMMUTABLE;
|
||||
$$ LANGUAGE SQL IMMUTABLE;
|
Ładowanie…
Reference in New Issue