Closed Mbaey closed 9 months ago
After searching for three web pages of How to set default style of layer using rest api in Geoserver - Geographic Information Systems Stack Exchange 、 geowebcache - GeoServer REST API and Styles — GeoServer 2.24.x User Manual。
I modified the 1482 line code of Geoserver.py file, add '.xml' in url , the code can run normally.
url = "{}/rest/layers/{}:{}".format(self.service_url, workspace, layer_name)
change to
url = "{}/rest/layers/{}:{}".format(self.service_url, workspace, layer_name) + ".xml"
When I use the publish_style function, I encounter an error HTTP 500. The code and error message are as follows:
Code:
Error Msg :