index.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .. _sld_reference:
  2. SLD Reference
  3. =============
  4. The OGC **Styled Layer Descriptor (SLD)** standard defines a language for expressing
  5. styling of geospatial data.
  6. GeoServer uses SLD as its primary styling language.
  7. SLD 1.0.0 is defined in the following specification:
  8. * `OGC Styled Layer Descriptor Implementation Specification, Version 1.0.0 <http://portal.opengeospatial.org/files/?artifact_id=1188>`_
  9. Subsequently the functionality of SLD has been split into two specifications:
  10. * `OGC Symbology Encoding Implementation Specification, Version 1.1.0 <http://portal.opengeospatial.org/files/?artifact_id=16700>`_
  11. * `OGC Styled Layer Descriptor profile of the Web Map Service Implementation Specification, Version 1.1.0 <http://portal.opengeospatial.org/files/?artifact_id=1188>`_
  12. GeoServer implements the SLD 1.0.0 standard, as well as some parts of the SE 1.1.0 and WMS-SLD 1.1.0 standards.
  13. **Elements of SLD**
  14. The following sections describe the SLD elements implemented in GeoServer.
  15. The root element for an SLD is ``<StyledLayerDescriptor>``.
  16. It contains a **Layers** and **Styles** elements which
  17. describe how a map is to be composed and styled.
  18. .. toctree::
  19. :maxdepth: 2
  20. sld
  21. layers
  22. styles
  23. Styles contain **Rules** and **Filters** to determine sets of features to be styled with specific symbology.
  24. Rules may also specify the scale range in which the feature styling is visible.
  25. .. toctree::
  26. :maxdepth: 2
  27. rules
  28. filters
  29. Rules contain **Symbolizers** to specify how features are styled.
  30. There are 5 types of symbolizers:
  31. * ``PointSymbolizer``, which styles features as **points**
  32. * ``LineSymbolizer``, which styles features as **lines**
  33. * ``PolygonSymbolizer``, which styles features as **polygons**
  34. * ``TextSymbolizer``, which styles **text labels** for features
  35. * ``RasterSymbolizer``, which styles **raster coverages**
  36. Each symbolizer type has its own parameters to control styling.
  37. .. toctree::
  38. :maxdepth: 2
  39. pointsymbolizer
  40. linesymbolizer
  41. polygonsymbolizer
  42. textsymbolizer
  43. labeling
  44. rastersymbolizer