Re: [Geoserver-users] copy styles directory

2013-09-06 Thread Jim White
Possibly because I have an older version (2.1.2) I just found it easier 
to browse/upload/validate/submit from the styles page.


Thanks anyhow.

Jim



On 09/06/2013 07:00 AM, geoserver-users-requ...@lists.sourceforge.net wrote:

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
   nameVMADD.ADDRESS/name
   idLayerInfoImpl--4c68f0d5:128cd132f0d:-7f8a/id
   typeVECTOR/type
   defaultStyle
 idStyleInfoImpl--*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



--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps http://whitecodingandmaps.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=58041391iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] copy styles directory

2013-09-05 Thread Jim White

Hi,

I created a new workspace and copied the styles directory from another 
server, but I don't see the copied styles listed when I click the styles 
link. What do I need to add to get them to appear?


Thanks,
Jim
--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps http://whitecodingandmaps.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=58041391iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] copy styles directory

2013-09-05 Thread cmaul
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
  nameVMADD.ADDRESS/name
  idLayerInfoImpl--4c68f0d5:128cd132f0d:-7f8a/id
  typeVECTOR/type
  defaultStyle
idStyleInfoImpl--*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=58041391iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] copy styles directory

2013-09-05 Thread cmaul
Hi Jim,

cave you copied the stylename.xml files with the sld files?

They look like this:

style
  idStyleInfoImpl--
*2e0631ee:136997f03ca:7037**
/id
  nameADDR_addresspoint_1/name
  sldVersion...etc

This ID is the definition and the reference for geoserver. It turns up in
the layer.xml 

layer
  nameVMADD.ADDRESS/name
  idLayerInfoImpl--4c68f0d5:128cd132f0d:-7f8a/id
  typeVECTOR/type
  defaultStyle
idStyleInfoImpl--*2e0631ee:136997f03ca:7037*/id
  /defaultStyle.

which is why it makes sense to copy always both, the 'styles' directory and
the 'workspaces' including their subdirectories. Otherwise you will have
layers without valid styles and styles without layers.
The names of styles do not matter for geoserver internally.

Actually there is more to it, which is the integrity between workspaces and
stores and layers and layergroups and styles. And, if you reference  for
instance shapefiles and not just databases the data directory as well.

Because of that I thought it always safer to copy the entire data directory
and then update 'www', 'plugins', 'security', 'user_projections' and all the
other stuff when updating geoserver.

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-tp5076344p5076349.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=58041391iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users