Closed AISuhasDattatreya closed 2 years ago
Have you checked your logs for an SQL error? If the same tile is having issues, even after a full cache purge, I suspect the issue is at fetching the data.
No SQL errors on cloudwatch either..
Try turning on the SQL debug mode and then executing a curl command to fetch the single tile that's causing you issues. You can then take the query to your database and investigate if there's some deeper issue happening. Here's how to toggle on debugging:
On your error log it shows a 502 response code. That's likely a timeout error. Please look into using mvt_postgis data provider rather than postgis.
@AISuhasDattatreya Give this config a test. This uses the mvt_postgis provider:
Note: I removed the srid=4326
config value. Is your data in 4326? If so we will need to modify this config a bit
[webserver]
port = ":8080"
# register data providers
[[providers]]
type = "mvt_postgis" # the type of data provider.
name = "tegolamap" # provider name is referenced from map layers
host = "" # postgis database host
port = 5432 # postgis database port
database = "postgres" # postgis database name
user = "" # postgis database user
password = "" # postgis database password
[cache]
type = "s3"
bucket = ""
region = "eu-west-2"
aws_access_key_id = ""
aws_secret_access_key = ""
[[providers.layers]]
[[providers.layers]]
name = "test"
id_fieldname = "ogc_fid"
geometry_fieldname = "geometry"
sql = 'SELECT ST_AsMVTGeom(geometry,!BBOX!) AS geometry, "Postcode", ogc_fid FROM test WHERE geometry && !BBOX!'
[[maps]]
name = "tegolamap"
center = [7.0982, 50.7374, 11.0]
[[maps.layers]]
provider_layer = "tegolamap.test"
Thanks for the config, yes the data is in 4326.
Using mvt_postgis just made the load a lot more faster. Thanks @ARolek . Also fixed the issue with patchy loading
@AISuhasDattatreya were you able to get 4326 data rendering correctly?
I'm loading a polygon dataset and at a zoom level, a few sections of the map do not get loaded. I've observed that it is specifically from the same section of the map. However, when I zoom into that area, the tiles continue to load
Zoomed out
zoomed in area
I'm using s3 to cache the tiles and I've tried to delete the cache but the same problem persists. I've removed the min and the max zoom level properties
config.toml
I've deployed this on AWS lambda. I see no errors on cloudwatch but some errors were captured on network