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
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ RETURNS TABLE(
|
||||||
WHERE
|
WHERE
|
||||||
zoom_level >= 4 AND
|
zoom_level >= 4 AND
|
||||||
zoom_level <= 12 AND
|
zoom_level <= 12 AND
|
||||||
|
region.admin_level = 6 AND
|
||||||
ST_Transform(region.geometry, 3857) && bbox
|
ST_Transform(region.geometry, 3857) && bbox
|
||||||
GROUP BY region.relation_id, region.name, region.geometry, region.admin_level
|
GROUP BY region.relation_id, region.name, region.geometry, region.admin_level
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue