All,

I have been using GS to serve coverages.  I use a script to place 
ArcGrid files in the coverages directory, and the I use the REST 
interface to configure them.  It works great when using the default 
workspace, with 3 steps:

1) create coveragestore
curl -u user:pass -XPOST -H \"Content-Type:text/xml\" -d 
\"<coverageStore><name>myCover</name><type>ArcGrid</type><enabled>true</enabled><url>file:coverages/myCover.txt</url></coverageStore>\"
 
http://localhost:8080/geoserver/rest/workspaces/defaultWorkSpace/coveragestores

2) create coverage
curl -u user:pass -XPOST -H \"Content-Type:text/xml\" -d 
\"<coverage><name>myCover</name></coverage>\" 
http://localhost:8080/geoserver/rest/workspaces/defaultWorkSpace/coveragestores/myCover/coverages

3) set style for coverage
curl -u user:pass -XPUT -H \"Content-Type:text/xml\" -d 
\"<layer><defaultStyle><name>myStyle</name></defaultStyle><enabled>true</enabled></layer>\"
 
http://localhost:8080/geoserver/rest/layers/defaultWorkSpace:myCover

But if I try to use any workspace name other than the default one, I get 
errors such as "No such coveragestore".

Any thoughts?

Thanks,
Steve

-- 
Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to