performance issue on highzoom
This commit is contained in:
parent
4393cc513d
commit
b0bc1823c5
1 changed files with 4 additions and 0 deletions
|
@ -321,7 +321,11 @@ def xml_layer(type="postgis", geom="point", interesting_tags = "*", sql = "true"
|
|||
intersection_SQL = '<Parameter name="intersect_max_scale">1</Parameter>'
|
||||
elif zoom > 16:
|
||||
intersection_SQL = '<Parameter name="intersect_min_scale">500000000000</Parameter>'
|
||||
|
||||
|
||||
if type == "postgis":
|
||||
if zoom >= 5:
|
||||
sql = '('+ sql + ') and way && !bbox!'
|
||||
interesting_tags = list(interesting_tags)
|
||||
if '"' not in "".join(interesting_tags) and "->" not in "".join(interesting_tags):
|
||||
interesting_tags = "\", \"".join(interesting_tags)
|
||||
|
|
Loading…
Add table
Reference in a new issue