gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
195 stars 77 forks source link

enhancement: support integration of new layers into existing layergroup #102

Closed Kilometerfresserin closed 1 year ago

Kilometerfresserin commented 1 year ago

Currently, if you want to add a new layer to an existing layergroup, the only way of doing that seems to be to delete the layergroup and build it again from scratch. The update_layergroup method currently only allows to update the metadata of the layergroup.

However, I think the PUT /layergroups/{layergroupName} and PUT /workspaces/{workspace}/layergroups/{layergroup} API functions do, in principle, support adding new layers to a group.

From my point of view, there are 2 options how this functionality could be integrated:

What do you think?

iamtekson commented 1 year ago

For me option 2 looks the better option. If you want to contribute to this, please go ahead. Thank you very much for pointing out this issue.