I have GeoServer 2.3.4 on Machine 1 with Data Directory A and Workspace X.
I have GeoServer 2.3.4 on Machine 2 with Data Directory B and Workspace Y.
How can I create GeoServer 2.3.4 on Machine 1 with Data Directory A with
Workspace X and Workspace Y?
Can I just copy Workspace Y into Data Directory A and start GeoServer up?
–Matt
In theory, yes, it could work, unless you have id conflicts on some objects.
Also, be sure that no object in X or Y refers to global objects, such as styles.
If both workspace don’t depend to any global object you should have no problem.
Many Thanks Mauro, makes sense. That leads me to the question, is there a way
to create objects like Styles, that are localized to the workspace?
--Matt
Many Thanks Mauro, makes sense. That leads me to the question, is there a way
to create objects like Styles, that are localized to the workspace?
–Matt
Yes, sure, in the styles configuration page you have a combo where you can choose the workspace.
Pay attention that, when a style is bound to a workspace it can only be used to style layers of that workspace and is not available globally anymore.
Why do I have to do that? Is the reason explained within the WMS standard or
GeoServer manual?
Unfortunately at the moment styles defined inside a workspace can only be used when you specify the workspace on the request (this happens also for layergroups, but not for layers).
This is considered a limit/issue of the current implementation.
The community is discussing on how to solve this. Please, have a look at this thread: http://osgeo-org.1560.x6.nabble.com/changing-fixing-behaviour-of-local-styles-and-layer-groups-td5101965.html