PolygonSymbolizer

PolygonSymbolizer is used to draw areal features by filling its interior part and stroking its border.

Parameters

Parameter NameValue TypeDescriptionRequired
FillFillSpecifies how the interior part of an areal features is filled.Yes
StrokeStrokeSpecifies a line symbolization for the border of an area.No
ClipBooleanSpecifies whether geometry is clipped to map bounds before rendering or not. Default value is False.No
GeometryExpressionStringSpecifies an expression to compute a geometry to be used in rendering. This parameter is optional. If it is not specified, a default geometry field of a data source is used.No

Fill

The Fill element determines how the interior part of an areal feature is filled. This element has the following parameters:

Parameters

Parameter NameValue TypeDescriptionRequired
ColorColorSpecifies a solid color in RGB format which is used to fill the interior part of an areal feature. Default color is black.No
OpacitySingleSpecifies the opacity of the painting operation when the area is filled. The range of values is [0,1], where value 0 - the stroke is transparent, value 1 - the stroke is completely opaque. Default value is 1.No
OutlinedBooleanSpecifies whether the border is outlined using the same color as filling or not. Default value is False.No
GraphicFillGraphicFillSpecifies a pattern to fill the area. Default value is null.No

GraphicFill

The GraphicFill element defines properties of a pattern filling.

Parameters

Parameter NameValue TypeDescriptionRequired
AngleSingleSpecifies a rotation angle of a texture or a hatch pattern. Default value is 0.No
DisplacementPointSpecifies a displacement of a texture or a hatch pattern. Default value is (0,0).No
GridAlignmentBooleanSpecifies whether the pattern is aligned to a pixel grid or not. Default value is True.No
GraphicSymbolsGraphicSymbol[]Specifies a list of symbols that form the pattern. By default, the list is empty.No
OpacitySingleSpecifies the opacity of the pattern. Default value is 1.No
SizeSizeSpecifies the size of the pattern in pixels. Default value is (0,0).No
TileWrapModeTileWrapModeSpecifies how a texture or gradient is tiled. Default value is Tile.No

Stroke

Stroke specifies a style of a polygon boundary. Stroke is rendered on top of the Fill. Stroke is defined in a corresponding section of LineSymbolizer: