Hi All, Just trying to create a layergroup via Geoserver's REST APIand it seems 
that any style in a workspace is ignored in favour of thedefault style for the 
layer (as is the case for an empty <style> element). For example, if I copy the 
styles used by the "tasmania"layer group into the "topp" workspace, and specify 
them in the XML (see below),the created layer group does not use them. Am I 
doing anything wrong here? For information, the curl command I’m using (which 
seemsfine) is:   curl –u admin:XXXXXXXX –XPOST –H 'Content-type:text/xml' 
[email protected] http://localhost:8080/geoserver/rest/layergroups where 
tasmania.xml contains the XML below. Many thanks, Andy <layerGroup>  
<name>tasmania_new</name>  <mode>SINGLE</mode>  <publishables>    <published 
type="layer">     <name>tasmania_state_boundaries</name>      
<atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/layers/tasmania_state_boundaries.xml"type="application/xml"/>
    </published>    <published type="layer">      
<name>tasmania_water_bodies</name>      
<atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/layers/tasmania_water_bodies.xml"type="application/xml"/>
    </published>    <published type="layer">      <name>tasmania_roads</name>   
   <atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/layers/tasmania_roads.xml"type="application/xml"/>
    </published>    <published type="layer">      <name>tasmania_cities</name>  
    <atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/layers/tasmania_cities.xml"type="application/xml"/>
    </published>  </publishables>  <styles>    <style>      
<name>green_ws</name>      <atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/workspaces/topp/styles/green_ws.xml"type="application/xml"/>
    </style>    <style>      <name>cite_lakes_ws</name>      
<atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/workspaces/topp/styles/cite_lakes_ws.xml"type="application/xml"/>
    </style>    <style>      <name>simple_roads_ws</name>      <atom:link 
xmlns:atom="http://www.w3.org/2005/Atom"rel="alternate"href="http://localhost:8080/geoserver/rest/workspaces/topp/styles/simple_roads_ws.xml"type="application/xml"/>
    </style>    <style>      <name>capitals_ws</name>      
<atom:linkxmlns:atom="http://www.w3.org/2005/Atom"; 
rel="alternate"href="http://localhost:8080/geoserver/rest/workspaces/topp/styles/capitals_ws.xml"type="application/xml"/>
    </style>  </styles>  <bounds>    <minx>143.83482400000003</minx>    
<maxx>148.47914100000003</maxx>    <miny>-43.648056</miny>    
<maxy>-39.573891</maxy>    <crs>EPSG:4326</crs>  </bounds>  <metadata>    
<entrykey="rawStyleList"></entry>  </metadata></layerGroup>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to