The following steps need to be followed in order to publish new spatial data in your GeoServer installation.


1. Add new styles (SLD)

By default, GeoServer only supports styles through the use of SLD (Styled Layers Descriptor) standard files. Lots of examples and documentation can be found at http://docs.geoserver.org/2.8.3/user/styling/sld-cookbook/index.html

  1. Navigate to “Styles” and press the “Add new style” button
  2. Give your style a new name
  3. Paste your SLD into the text area or choose file to upload from your local computer
  4. Validate your style by pressing the “Validate” button
  5. Only submit your style if the validation retrieves no errors (like the next example)

   


2. Publish a new Layer

There are several possibilities to publish layers in Geoserver which are mainly related to the type of the data source you will be feeding GeoServer with. In the following section three procedures will be described:

  1. Publish data that has been imported (by using GIS desktop systems or command line tools) into the spatial database (schema: spatial) shipped with Union VMS.
  2. Publish data that has been imported into a spatial database
  3. Publish a shapefile


For performance reasons, it is recommended that all vectorial data being served by Geoserver is stored in a spatial database and that all optimizations have been done previously (e.g. building spatial indexes, geometry generalization, …)

2.1 Publish data imported into Union VMS database

                             

                             


2.2 Publish data imported into a different spatial database


                  

2.3 Publish a shapefile