Tengo más de 200 SLD que me gustaría subir a Geoserver utilizando la API REST. He subido con éxito un SLD utilizando el módulo gsconfig Python.
Sin embargo, me gustaría poder establecer el espacio de trabajo cuando subo. ¿Es esto posible? Abajo está mi script hasta ahora.
from geoserver.catalog import Catalog
cat = Catalog("http://chchchch:8080/geoserver/rest", "username", "pw")
with open("C:\Users\Documents\SLD\my_sld.sld") as f:
cat.create_style("my_sld", f.read())