Hi Stephen,
I guess you need to specify the workspace you would like to use when
creating the coverageStore.

I can suggest also to use this opensource project which allow you to manage
easily every REST operation against GeoServer with a simplified Java API
https://github.com/geosolutions-it/geoserver-manager


Regards,
        Alessio.

-------------------------------------------------------
Ing. Alessio Fabiani
Founder / CTO GeoSolutions S.A.S.

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: (+39) 0584 96.23.13
fax:     (+39) 0584 96.23.13
mobile:(+39) 331 62.33.686

http://www.geo-solutions.it
http://geo-solutions.blogspot.com
http://www.linkedin.com/in/alessiofabiani
https://twitter.com/alfa7961
http://twitter.com/geosolutions_it
-------------------------------------------------------



On Fri, May 11, 2012 at 8:34 PM, Stephen Crawford <[email protected]> wrote:

> 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
>
------------------------------------------------------------------------------
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