Updating SLD in geoserver via REST with image ref

المشرف العام

Administrator
طاقم الإدارة
I've got hundreds of SLDs that I want to update in a geoserver instance. All good for most of them but those that reference images fail to get updated.

For example:

image/svg+xml 20 I know that the REST api does not support uploading the images but they already exist. If I just paste the sld into web page for the style in geoserver it accepts it and all is good. The problem would appear to be the upload code trying to resolve the link relative to the upload and not the final destination.

The error is

Caused by: java.net.MalformedURLException: no protocol: symbols/airport.svg

Does anyone know a way around this. Manually updating 100s of styles is simply not an option.



أكثر...
 
أعلى