Hello Jim,

have you also copied the stylename.xml? This file has an ID which is
essential to reference and register the style with geoserver.




This ID turns up with the layer.xml in the workspace:

<layer>
  <name>VMADD.ADDRESS</name>
  <id>LayerInfoImpl--4c68f0d5:128cd132f0d:-7f8a</id>
  <type>VECTOR</type>
  <defaultStyle>
    <id>StyleInfoImpl--*2e0631ee:136997f03ca:7037*</id>
  </defaultStyle> etc, etc.......


That is why it makes sense to copy both directories, 'styles' and
'workspace' otherwise you will have layers that reference a style that does
not exist and styles that are not used by your layers and the name does not
matter as the connection is via the ID above.

Cheers

Christian



-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:        +61-3-8636 2325
Telefax:              +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/copy-styles-directory-tp5076344p5076347.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to