Dr. Frank Erjiang Fu,

This is how we have used the REST API to associate multiple styles using SOAPUI 
to test/configure.

Example endpoint
https://${#Global#geoserverHostAndPort}/geoserver/rest/layers/${#Project#workspace}:${#Project#layername}

PUT  the following to your REST endpoint as text/xml

  <layer>
  <defaultStyle>
    <name>burg</name>
  </defaultStyle>
  <styles>
    <style>
      <name>giant_polygon</name>
    </style>
    <style>
      <name>point</name>
    </style>
    <style>
      <name>line</name>
    </style>
  </styles>
<enabled>true</enabled><!--important to set this true or the layer is 
disabled-->
  <resource class="featureType">
    <name>${#Project#layername}</name>
  </resource>
</layer>

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.


-----Original Message-----
From: Rahkonen Jukka (Tike) [mailto:[email protected]] 
Sent: Wednesday, September 10, 2014 4:53 AM
To: '[email protected]'
Subject: [Geoserver-users] Forwarded mail about REST and multiple SLD

Hi,

I forward the mail from Dr Frank Erjiang Fu who has problems with joining to 
the mailing list.

-Jukka Rahkonen-

> I subscripted to the mailing list week ago but for some reason I can't post 
> email to the mailing list (being held as post by non-member). I receive the 
> posts from the mailing list but cant post my own. 
> I wonder whether you know the administrator of the mailing list? I also 
> wonder whether you have any advice to my question. See my origin post below: 

----------------------
> Hello,

> This is my first post in this mailing list. 

> We are trying to deploy GeoServer to a production environment. We would like 
> to use the REST API to configure the layer and layer groups. I have been able 
> to achieve most of things we want but one. 

> Some of our layers need to link to multiple SLD files. There are no problems 
> to assign the defaultStyle to a layer but I could not find any documentation 
> how the second/third SLD can be linked to a layer by using the REST method. 

> Anyone could give me a clue? Thanks in advance.

-----------------------

> Thank you very much for your time. 
> Sorry if any trouble about this email. 

> Regards,

> Dr Frank Erjiang Fu
> Senior Environmental IT Specialist
> Information Systems and Services

> Australian Bureau of Meteorology
> Address: 700 Collins Street, Docklands VIC 3008
> E-mail: [email protected]
> Office: +61 3 9616 8375
> Mobile: +61 404 248 666
> www.bom.gov.au

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce Perforce version control. 
Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to