Closed polzader closed 3 years ago
I think the problem with the overwrite option. I saw the overwrite=True
, in your function call. If the style file is not already available in geoserver, you don't have to pass the overwrite
parameter.
Thanks. I resolved the problem: remove the parameter overwrite=True
and it's work well.
I'm using the function to create dynamic style:
` workspace="general" image="../data/NDVI_20201104.tif" style="ndvi" color_ramp ='RdYlGn'
` But I getting error response: Invalid style: null
I noticed that, if the style exists in geoserver, then the function works fine. Otherwise, it is not able to upload the style file. However, the function says:
def create_coveragestyle(self, raster_path, style_name=None, workspace=None, color_ramp='RdYlGn_r', cmap_type='ramp', overwrite=False):
...create the xml file for associated style
I understand that you upload the style file to the geoserver.