sld:TextSymbol
A "TextSymbol" is used to render text labels according to various graphical parameters.
Element information
Namespace: http://niem.gov/niem/external/ogc-sld/1.0.20/dhs-gmo/1.0.0
Schema document: external/ogc-sld/1.0.20/dhs-gmo/1.0.0/sld.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Sequence [1..1]
- sld:Name [0..1]
- sld:Description [0..1] A "Description" gives human-readable descriptive information for the object it is included within.
- sld:BaseSymbol [0..1] A "BaseSymbol" defines the default properties of a symbol to be those of an external symbol, which will frequently be inside of an OGC symbol(izer) repository. The symbol properties given in-line override the base-symbol properties.
- sld:Geometry [0..1] A Geometry gives reference to a (the) geometry property of a feature to be used for rendering.
- sld:Label [0..1] A "Label" specifies the textual content to be rendered.
- sld:Font [0..1] A "Font" element specifies the text font to use. The allowed SvgParameters are: "font-family", "font-style", "font-weight", and "font-size".
- sld:LabelPlacement [0..1] The "LabelPlacement" specifies where and how a text label should be rendered relative to a geometry. The present mechanism is poorly aligned with CSS/SVG.
- sld:Halo [0..1] A "Halo" fills an extended area outside the glyphs of a rendered text label to make the label easier to read over a background.
- sld:Fill [0..1] A "Fill" specifies the pattern for filling an area geometry. The allowed SvgParameters are: "fill" (color) and "fill-opacity".
from type sld:SymbolType
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
version | [0..1] | sld:VersionType | from type sld:SymbolType |
Used in
- Anonymous type of element sld:MappedColorSubSymbol
- Anonymous type of element sld:Rule
Substitution hierarchy
- sld:Symbol
- can be substituted with sld:TextSymbol
Sample instance
<sld:TextSymbol> <sld:Name>string</sld:Name> <sld:Description> <sld:Title>string</sld:Title> <sld:Abstract>string</sld:Abstract> </sld:Description> <sld:BaseSymbol> <sld:OnlineResource/> </sld:BaseSymbol> <sld:Geometry> <ogc:PropertyName/> </sld:Geometry> <sld:Label>Any text, intermingled with: <ogc:Add> <ogc:Add>... </ogc:Add> </ogc:Add> </sld:Label> <sld:Font> <sld:SvgParameter name="string">Any text, intermingled with: <ogc:Add>... </ogc:Add> </sld:SvgParameter> </sld:Font> <sld:LabelPlacement> <sld:PointPlacement> <sld:AnchorPoint>... </sld:AnchorPoint> <sld:Displacement>... </sld:Displacement> <sld:Rotation>Any text, intermingled with:... </sld:Rotation> </sld:PointPlacement> </sld:LabelPlacement> <sld:Halo> <sld:Radius>Any text, intermingled with: <ogc:Add>... </ogc:Add> </sld:Radius> <sld:Fill> <sld:GraphicFill>... </sld:GraphicFill> <sld:SvgParameter name="string">Any text, intermingled with:... </sld:SvgParameter> </sld:Fill> </sld:Halo> <sld:Fill> <sld:GraphicFill> <sld:Graphic>... </sld:Graphic> </sld:GraphicFill> <sld:SvgParameter name="string">Any text, intermingled with: <ogc:Add>... </ogc:Add> </sld:SvgParameter> </sld:Fill> </sld:TextSymbol>