[Geoserver-users] Adding Coverage Store Through REST

Hi,

I am trying to use curl to submit requests to add a coverage store through the REST interface. I try to modify the coveragestore xml of a workspace, but it seems like the coverage store is always added to the default workspace, and not the one specified through the request. I am using Geoserver 2.6.0, GeoTools 12.0. Geotools is run via Tomcat. My request looks like this:

curl -u username:password -v -X POST -H “Content-type: text/xml” -d “myStoreTestRPFTOCtruefile://C:\myData\test.TOC” “http://localhost:8080/geoserver/rest/workspaces/acme/coveragestores?configure=all

Yes, I have the gdal plugin, and I have verified that it is working by using the web GUI to put in RPFTOC formats. My workspace is configured to have “cite” as the default; running the curl statement creates the store, but it is associated with “cite”. I thought that by providing the url to the acme workspace, it would create the store there instead.

I would appreciate any help on this matter, if I am doing something wrong. Thank you.

Edwin