restrict to admin_level 6
Only compute the regions layer at the required admin level 6 (kreise/kreisfreie Städte)- we're not using other levels yet and this speeds it up notably.
This commit is contained in:
parent
b6cf59a09d
commit
a7566fb6b3
|
@ -20,6 +20,7 @@ RETURNS TABLE(
|
|||
WHERE
|
||||
zoom_level >= 4 AND
|
||||
zoom_level <= 12 AND
|
||||
region.admin_level = 6 AND
|
||||
ST_Transform(region.geometry, 3857) && bbox
|
||||
GROUP BY region.relation_id, region.name, region.geometry, region.admin_level
|
||||
|
||||
|
|
Loading…
Reference in a new issue