2015-08-28

I have an instance of GeoServer running where I want to categorise the various layers into a nested hierarchy using container tree layer groups. This would make the layers easier to navigate when using something like QGIS's Add layer from WMS Server interface. The layers would be grouped like so:

level0

level1

level2

product0

product1

level3

product0

product1

product2

The content of the layer groups will be constantly changing - with layers either appended or removed from layer groups.

I have written a python script that appends layers to particular layer groups using curl and GeoServer REST API, such as append product4 layer to level3 layergroup. This works successfully and when I check the layer groups' content either by a GET command or in the web interface the layer group contents are up to date.

The problem is that as the layer group contents change, the updated contents are not displayed through QGIS's Add layer from WMS Server or a Get Capabilities response etc.

I have verified that the layer group contents change in the GeoServer data directory and so I think the issue lies with the GeoServer memory not refreshing as the disk configuration is changed.

I've tried the Server Status>Configuration and catalog>Reload action and while that is successful in updating the layer groups on display, this can take up to ten minutes with such a large number of layers in the GeoServer instance (>2000 layers).

Has anyone else tried to have dynamically changing GeoServer layer groups?

Is it a GeoServer memory issue as I think it is, or something else that I've missed?

Thanks a lot!

Show more