Project Code: C178-SEA-ISLAND-2022-SUPPORT
The goal is to have a script to programmatically update the tile layers configuration for a list of layers in geoserver based on a template.
The final configuration of the tile layers is going to be the same for all of them. A sample invocation could be:
./update_tile_layers.py geoserver_url geoserver_username geoserver_pass ./layers.txt tl_config_template.xml
The script will PUT the tempalted configuration via REST to GeoServer for all of the layers listed in the layers.txt. GeoServer and GWC REST API is documented here.
Example XML template to use for testing
tile_layer_template.xml.txt
Note: I have user double curly braces for the placeholders but you can use whatever character works best for you
Tasks:
Project Code: C178-SEA-ISLAND-2022-SUPPORT
The goal is to have a script to programmatically update the tile layers configuration for a list of layers in geoserver based on a template.
The final configuration of the tile layers is going to be the same for all of them. A sample invocation could be:
./update_tile_layers.py geoserver_url geoserver_username geoserver_pass ./layers.txt tl_config_template.xmlThe script will PUT the tempalted configuration via REST to GeoServer for all of the layers listed in the
layers.txt. GeoServer and GWC REST API is documented here.Example XML template to use for testing
tile_layer_template.xml.txt
Note: I have user double curly braces for the placeholders but you can use whatever character works best for you
Tasks:
masterbranch and assign it to me for review