-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

GeoServer Beginner's Guide
By :

Once you have configured your data on GeoServer, it is time to publish it. The REST interface gives you the resources to manage layers, styles, and layer groups.
You learned a lot about styles and SLD in Chapter 6, Styling Your Layers. Configuring proper visualization requires you to create and publish proper styles.
REST offers you two resources to manage styles. They are as follows:
/styles /workspaces/<ws>/styles
The former points to styles that are not associated with a workspace, while the latter contains the styles associated to a specific workspace.
Adding a new style is a routine task if you are publishing data with REST. We will retrieve an existing style from GeoServer, update it, and then upload it to GeoServer as a new one:
PopulatedPlacesLabeled
as a template for our new style. Send a request to GeoServer to retrieve it and save it to the PopulatedPlacesBlueLabeled.xml
file. Note that we are sending a...Change the font size
Change margin width
Change background colour