Styled Layer Descriptor support

The WMS connector provides support for a subset of the Styled Layer Descriptor specification. The following is the scope of the support:

Supported SLD elements

Below are the supported SLD elements grouped by feature type. All elements are optional.

Point

Polyline

Polygon

Text label


For point features (PointSymbolizer)

Element name <WellKnownName>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PointSymbolizer/Graphic/Mark/WellKnownName
Function Gives well known name of the shape of the point mark
Defualt value "Square" (supports "circle", "triangle", "star", "cross", "x")
Element name <CssParametername name="fill">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PointSymbolizer/Graphic/Mark/Fill/CssParameter[@name='fill']
Function Point fill color
Defualt value #000000
Element name <Opacity>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PointSymbolizer/Graphic/Opacity
Function Point fill opacity
Defualt value 1.0 (from 0.0 to 1.0, and 0.0 is transparent)
Element name <Size>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PointSymbolizer/Graphic/Size
Function Point size
Defualt value 3

top

For polyline feature (LineSymbolizer)

Element name <CssParametername name="stroke">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ LineSymbolizer/Stroke/CssParameter[@name='stroke']
Function Line color
Defualt value #000000
Element name <CssParametername name="stroke-opacity">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ LineSymbolizer/Stroke/CssParameter[@name='stroke-opacity']
Function Line opacity
Defualt value 1.0 (from 0.0 to 1.0, and 0.0 is transparent)
Element name <CssParametername name="stroke-width">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ LineSymbolizer/Stroke/CssParameter[@name='stroke-width']
Function Line width
Defualt value 1
Element name <CssParametername name="stroke-linejoin">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ LineSymbolizer/Stroke/CssParameter[@name='stroke-linejoin']
Function Line join style
Defualt value "mitre" (supports "mitre", "round", "bevel")
Element name <CssParametername name="stroke-linecap">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ LineSymbolizer/Stroke/CssParameter[@name='stroke-linecap']
Function Line cap style
Defualt value "butt" (supports "butt", "round", "square")

top

For polygon feature (PolygonSymbolizer)

Element name <CssParametername name="fill">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Fill/CssParameter[@name='fill']
Function Polygon Color
Defualt value #000000
Element name <CssParametername name="fill-opacity">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Fill/CssParameter[@name='fill-opacity']
Function Polygon Opacity
Defualt value 1.0 (from 0.0 to 1.0, and 0.0 is transparent)
Element name <CssParametername name="stroke">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Stroke/CssParameter[@name='stroke']
Function Border color
Defualt value #000000
Element name <CssParametername name="stroke-opacity">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Stroke/CssParameter[@name='stroke-opacity']
Function Border Opacity
Defualt value 1.0 (from 0.0 to 1.0, and 0.0 is transparent)
Element name <CssParametername name="stroke-width">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Stroke/CssParameter[@name='stroke-width']
Function Border width
Defualt value 1
Element name <CssParametername name="stroke-linejoin">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Stroke/CssParameter[@name='stroke-linejoin']
Function Border join style
Defualt value "mitre" (suooprts "mitre", "round", "bevel")
Element name <CssParametername name="stroke-linecap">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ PolygonSymbolizer/Stroke/CssParameter[@name='stroke-linecap']
Function Border cap style
Defualt value "butt" (supports "butt", "round", "square")

top

For text label (TextSymbolizer)

Element name <Label>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Label
Function Property name of the feature which will be shown in text label
Defualt value None (no text will be shown)
Element name <CssParameter name="font-family">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Font/CssParameter [@name='font-family']
Function Font Family
Defualt value value System dependent
Element name <CssParameter name="font-weight">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Font/CssParameter [@name='font-weight']
Function Font weight
Defualt value "normal" (supports "normal", "bold")
Element name <CssParameter name="font-style">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Font/CssParameter [@name='font-style']
Function Font style
Defualt value "normal" (supports "italic", “"normal", "oblique")
Element name <Rotation>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/LabelPlacement/Rotation
Function Rotation for label clockwise unit degree, range 0 - 360
Defualt value 0
Element name <Radius>
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Halo/Radius
Function Radius for the Halo in pixel
Defualt value 1
Element name <CssParameter name="fill">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Halo/CssParameter [@name='fill']
Function Fill color for Halo
Defualt value #ffffff
Element name <CssParameter name="fill">
Path in SLD schema //StyledLayerDescriptor/NamedLayer/UserStyle/FeatureTypeStyle/Rule/ TextSymbolizer/Fill/CssParameter [@name='fill']
Function Fill color for label
Defualt value #000000

top