O'Reilly logo

GeoServer Cookbook by Stefano Iacovella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a simple polygon style with CSS

We're assuming that you already know how to make WMS GetMap requests to GeoServer and you have already played with simple SLD styles. Now, you'll start creating your first simple style using the CSS syntax. For this recipe, you'll use the countries feature type you published in Chapter 1, Working with Vectors.

Tip

The entire CSS style for the recipe is located in the GeneralizedCountries.css file.

How to do it…

  1. Open the CSS Style section from the GeoServer web interface. Then, select the link Choose a different layer. From the list of layers, select PostGISLocal:GeneralizedCountries.
  2. Select the Create a new style link. In the form, select the NaturalEarth workspace and insert the style name, as shown in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required