Web App Development

Setting the default style of a GeoServer layer with gsConfig

The gsconfig layer classes have a _set_default_style method, after that Catalog.save commits the change:
# The last two arguments are the geoserver username and password
cat = Catalog("http://localhost:8080/geoserver/rest", "admin", "geoserver")
layer = cat.get_layer("layer_name")


Follow me on Twitter
I'm building monitoring tool for site speed and Core Web Vitals.
➔ Start monitoring your website or run a free site speed test