Closed trideset3 closed 12 months ago
Ok, I was missing the transform of the geom or bbox in the conditional clause. There is no issue, my mistake.
[[providers.layers]]
name = "test_layer"
geometry_fieldname = "geom"
geometry_type="polygon"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(ST_Transform(geom, 4326),!BBOX!) AS geom, id FROM test_table WHERE geom && ST_Transform(!BBOX!,3765)"
Glad you figured that out!
Hello,
the data in my PostGIS db is in EPSG:3765 (geometry field is "geom"). I'm using tegola to serve vector tiles but I want to reproject the data to 4326 (or 3857). This is my tegola config:
With this configuration, the tiles are empty. I tried different solutions (reprojecting to 3857, different geometry alias in query, transforming the bbox and so on) but nothing works. What is the proper way and best practice to do the reprojection and make tegola aware of it? I'm running tegola v0.16.0.