.. _sld_reference_pointsymbolizer: PointSymbolizer =============== The PointSymbolizer styles **points**, Points are elements that contain only position information. Syntax ------ The outermost element is the ```` tag. This determines the type of visualization. There are five possible tags to include inside the ```` tag: .. list-table:: :widths: 20 20 60 * - **Tag** - **Required?** - **Description** * - ```` - No (when using ````) - Specifies an image file to use as the symbolizer. * - ```` - No (when using ````) - Specifies a common shape to use as the symbolizer. * - ```` - No - Determines the opacity (transparency) of symbolizers. Values range from ``0`` (completely transparent) to ``1`` (completely opaque). Default is ``1``. * - ```` - Yes - Determines the size of the symbolizer in pixels. When used with an image file, this will specify the height of the image, with the width scaled accordingly. * - ```` - No - Determines the rotation of the graphic in degrees. The rotation increases in the clockwise direction. Negative values indicate counter-clockwise rotation. Default is ``0``. Within the ```` tag, there are also additional tags: .. list-table:: :widths: 20 20 60 * - **Tag** - **Required?** - **Description** * - ```` - Yes - The location of the image file. Can be either a URL or a local path relative to the SLD. * - ```` - Yes - The MIME type of the image format. Most standard web image formats are supported. Within the ```` tag, there are also additional tags: .. list-table:: :widths: 20 20 60 * - **Tag** - **Required?** - **Description** * - ```` - Yes - The name of the common shape. Options are ``circle``, ``square``, ``triangle``, ``star``, ``cross``, or ``x``. Default is ``square``. * - ```` - No (when using ````) - Specifies how the symbolizer should be filled. Options are a ```` specifying a color in the form ``#RRGGBB``, or ```` for a repeated graphic. * - ```` - No (when using ````) - Specifies how the symbolizer should be drawn on its border. Options are a ```` specifying a color in the form ``#RRGGBB`` or ```` for a repeated graphic. Example ------- Consider the following symbolizer taken from the Simple Point example in the :ref:`sld_cookbook_points` section in the :ref:`sld_cookbook`. .. code-block:: xml :linenos: circle #FF0000 6 The symbolizer contains a ```` tag, which is required. Inside this tag is the ```` tag and ```` tag, which are the minimum required tags inside ```` (when not using the ```` tag). The ```` tag contains the ```` tag and a ```` tag. No other tags are required. In summary, this example specifies the following: #. Data will be rendered as points #. Points will be rendered as circles #. Circles will be rendered with a diameter of 6 pixels and filled with the color red Further examples can be found in the :ref:`sld_cookbook_points` section of the :ref:`sld_cookbook`.