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
"<coverageStore><name>myStoreTest</name><type>RPFTOC</type><enabled>true</enabled><url>file://C:\myData\test.TOC</url></coverageStore>"
"
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
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users