Hi All,
Just trying to create a layergroup via Geoserver’s REST API and it seems that any style in a workspace is ignored in favour of the default style for the layer (as is the case for an empty element).
For example, if I copy the styles used by the “tasmania” layer group into the “topp” workspace, and specify them in the XML (see below), the created layer group does not use them.
Am I doing anything wrong here?
For information, the curl command I’m using (which seems fine) is:
curl –u admin:XXXXXXXX –XPOST –H ‘Content-type: text/xml’ -d@anonymised.com http://localhost:8080/geoserver/rest/layergroups
where tasmania.xml contains the XML below.
Many thanks,
Andy
tasmania_new SINGLE tasmania_state_boundaries tasmania_water_bodies tasmania_roads tasmania_cities green_ws cite_lakes_ws simple_roads_ws capitals_ws 143.83482400000003 148.47914100000003 -43.648056 -39.573891 EPSG:4326