123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- .. _sld_reference:
- SLD Reference
- =============
- The OGC **Styled Layer Descriptor (SLD)** standard defines a language for expressing
- styling of geospatial data.
- GeoServer uses SLD as its primary styling language.
- SLD 1.0.0 is defined in the following specification:
- * `OGC Styled Layer Descriptor Implementation Specification, Version 1.0.0 <http://portal.opengeospatial.org/files/?artifact_id=1188>`_
- Subsequently the functionality of SLD has been split into two specifications:
- * `OGC Symbology Encoding Implementation Specification, Version 1.1.0 <http://portal.opengeospatial.org/files/?artifact_id=16700>`_
- * `OGC Styled Layer Descriptor profile of the Web Map Service Implementation Specification, Version 1.1.0 <http://portal.opengeospatial.org/files/?artifact_id=1188>`_
- 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.
- **Elements of SLD**
- The following sections describe the SLD elements implemented in GeoServer.
- The root element for an SLD is ``<StyledLayerDescriptor>``.
- It contains a **Layers** and **Styles** elements which
- describe how a map is to be composed and styled.
- .. toctree::
- :maxdepth: 2
-
- sld
- layers
- styles
-
- Styles contain **Rules** and **Filters** to determine sets of features to be styled with specific symbology.
- Rules may also specify the scale range in which the feature styling is visible.
- .. toctree::
- :maxdepth: 2
-
- rules
- filters
-
- Rules contain **Symbolizers** to specify how features are styled.
- There are 5 types of symbolizers:
- * ``PointSymbolizer``, which styles features as **points**
- * ``LineSymbolizer``, which styles features as **lines**
- * ``PolygonSymbolizer``, which styles features as **polygons**
- * ``TextSymbolizer``, which styles **text labels** for features
- * ``RasterSymbolizer``, which styles **raster coverages**
- Each symbolizer type has its own parameters to control styling.
-
- .. toctree::
- :maxdepth: 2
-
- pointsymbolizer
- linesymbolizer
- polygonsymbolizer
- textsymbolizer
- labeling
- rastersymbolizer
|