Friday, 15 November 2019

How to set up a Workspace setting in Geoserver using Curl


I have successfully created a workspace + store + raster layer in Geoserver using Curl in PHP.


If I go back to Geoserver's UI and enter the Workspace that I have just created, the Settings: 'Enable' and any of the 'Services' are UNchecked (empty). I would like to enable them by using Curl.


If you visit: http://docs.geoserver.org/latest/en/user/rest/examples/curl.html#


Apparently the only -simplest?- way of creating a workspace in geoserver is by using the XML tags:


your name


If I try to add new tags to the XML expression above, such as for instance


True


it gives you an error.


[500] No such field org.geoserver.catalog.impl.WorkspaceInfoImpl.enabled



So, Have anyone successfully configured those options of the Workspace by using Curl? For instance enabling WMS Services for that workspace?


By the way this post does not help too much:


Selecting service (WMS / WFS) through GeoServer REST API?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...