GeoServer OSM Styling – GeoServer-OSM Windows SLD Styling Guide

geoserveropenstreetmap

I have GeoServer with Postgres and PostGIS bundle installed.
I have also sucessfully imported my osm map using osm2pgsql.

I'm following this tutorial from this site, Link and reached this step in which the author said about SLD filtering/styling.

ScreenGrab

Upon researching, I found out there are 2 github that provides the SLD already in which, they are: GithubLink1 GithubLink2, in which one of them says to

  1. Add .sld files into "styles" directory.
  2. Add "symbols" directory into "styles" directory.
  3. Create new styles from GeoServer administration website.

How do I do that, and am I on the right track?

Best Answer

Assuming you are using a current stable release (if not, upgrade first):

  • log in to the web UI
  • go to the Data Management section
  • click on styles
  • click on the "Add a new style" - adjacent to the green "+" symbol.
  • click on the "Browse..." button, and select your SLD.
  • click on the "Upload..." link.
  • verify style uploaded successfully (should appear in the style list)

For more information, refer to relevant part of the manual.

Related Question