Hey all,

With regards to my initial question - is there anyone who can help with
this? I've got hundreds of shp files that need the styles changing - if I
move them all into the default styles location it does work but I'd rather
keep everything separate and organized for now.

Cheers,

Ben

On Fri, Jan 9, 2015 at 10:25 AM, Ben Crane <[email protected]> wrote:

> Hey all,
>
> I've been investigating the REST API as I have to load hundreds of SHP
> files into GeoServer and so far I can upload the data and publish it no
> problems.
>
> I am having problems assigning a workspace specific style to it.
>
> Here is my command:
>
> curl -v -u a:p -XPUT -H "Content-type: text/xml" -d
> "<layer><defaultStyle><name>myStyle</name></defaultStyle></layer>"
> https:...../rest/layers/RDS:MyLayer
>
> Now, when I specify any styles not associated with a workspace (such as
> the default polygon style) this command works but my styles are stored in
> /workspaces/RDS/styles
>
> So how do I assign a style not in the default location to my layer? I'm
> really stuck on this
>
> Cheers,
> Ben
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to