Dylan Parry
2017-07-22 13:07:01 UTC
Hi all,
I'm trying to set up a group of layers to create a tile server that will be served as Vector Tiles using the vectortile extension.
I have several layers, eg. roads, buildings, water etc, and I'd like to turn some of them off at certain zoom levels/scales. I've set up some SLD styles and it works well when I'm requesting the tiles as raster images. I've set for example the buildings layer to only start showing at 1:10k, and this works nice and fast as rasters.
The problem I'm having is that the SLD doesn't seem to have the desired effect when I start requesting vector tiles. It is incredibly slow at small scales. This makes me think that my data is still being processed instead of being excluded by the SLD. Nothing appears on the map as at that small a scale the features are being excluded by virtue of their size, but this means they are being tested by GeoServer for area/length etc so it's really slow. Most of the time it takes so long that requests will timeout.
So my question is, is there any way to do what I'm trying to do with Vector Tiles and still get good performance?
Thanks,
Dylan
I'm trying to set up a group of layers to create a tile server that will be served as Vector Tiles using the vectortile extension.
I have several layers, eg. roads, buildings, water etc, and I'd like to turn some of them off at certain zoom levels/scales. I've set up some SLD styles and it works well when I'm requesting the tiles as raster images. I've set for example the buildings layer to only start showing at 1:10k, and this works nice and fast as rasters.
The problem I'm having is that the SLD doesn't seem to have the desired effect when I start requesting vector tiles. It is incredibly slow at small scales. This makes me think that my data is still being processed instead of being excluded by the SLD. Nothing appears on the map as at that small a scale the features are being excluded by virtue of their size, but this means they are being tested by GeoServer for area/length etc so it's really slow. Most of the time it takes so long that requests will timeout.
So my question is, is there any way to do what I'm trying to do with Vector Tiles and still get good performance?
Thanks,
Dylan