Skip to content

Tile Layer config update script #24

@randomorder

Description

@randomorder

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:

  • set up local geoserver using platform independent binary available here. Default username and passwords are 'admin' and 'geoserver'
  • create a Fork of this repository in your own github account and implement the script
  • submit a Pull Request targeting this repository on the master branch and assign it to me for review

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions