You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2017-07-13 05:28:50.514 ERROR Query: SELECT ST_Multi(ST_SimplifyPreserveTopology(ST_Multi(way),$6::FLOAT8/2)) AS way,"name","ref","class","brunnel" FROM ( SELECT
way,
name,
ref,
highway AS class,
CASE
WHEN bridge IS NOT NULL AND bridge <> 'no' THEN 'bridge'
ELSE CASE WHEN tunnel IS NOT NULL and tunnel <> 'no' THEN 'tunnel' END
END AS brunnel
FROM planet_osm_roads
WHERE way && ST_MakeEnvelope($1,$2,$3,$4,3857)
AND (highway = 'motorway'
OR highway = 'trunk' AND $5 >= 7
OR highway = 'primary' AND $5 >= 8
OR highway = 'secondary' AND $5 >= 9)
) AS _q
2017-07-13 05:28:50.514 ERROR Param types: [Bbox, Zoom, PixelWidth]
2017-07-13 05:28:50.514 ERROR Param values: [-20037508.342789248, -20037508.342789248, 20037508.342789248, 20037508.342789248, 0, 156543.033928041]
The layer in question is
[[tileset.layer]]
name = "transport"geometry_field = "way"geometry_type = "LINESTRING"srid = 3857buffer-size = 128simplify = true
[[tileset.layer.query]]
minzoom = 0maxzoom = 10sql = """ SELECT way, name, ref, highway AS class, CASE WHEN bridge IS NOT NULL AND bridge <> 'no' THEN 'bridge' ELSE CASE WHEN tunnel IS NOT NULL and tunnel <> 'no' THEN 'tunnel' END END AS brunnel FROM planet_osm_roads WHERE way && !bbox! AND (highway = 'motorway' OR highway = 'trunk' AND !zoom! >= 7 OR highway = 'primary' AND !zoom! >= 8 OR highway = 'secondary' AND !zoom! >= 9)"""
If I remove the !zoom! tokens, it works.
The text was updated successfully, but these errors were encountered:
The layer in question is
If I remove the
!zoom!
tokens, it works.The text was updated successfully, but these errors were encountered: