The <colors>node contain the color table information. This color table is referenced from the point, line, area and label sections of the symbol.xml file.
Child element
Description
Properties
color
Color value definition.
O R A
Color
Attribute
Description
Properties
Name
String that identifies the color.
Rgba
value defining the red, green, blue and alpha values for the color.
Default root path to location of symbol/pattern files used in symbolization.
O A
Basescale
Attribute
Description
Properties
value
Scale factor. Default value is 1.0.
Defaultroot
Attribute
Description
Properties
path
Relative path to where the pointsymbol-files are located.
Point
The <point> blocks defines point symbols which are used either as a part of a complex line/area symbolization or as a single point map element. Point symbols can be rotated, offset and/or scaled.
The name of the symbol graphic. This name is used when referencing the point definition from the script files or from other parts of the symbols.xml file.
The defined width and height of the symbol (in mm). Note: extent is only used when defining origo type "xy", "centerx_y" or "x_centery". X and y are then relative to the extent defined. Extent will not impact the size of the point symbol.
How origo is defined. Valid values are: xy, center, centerx_y, x_centery.
x
Origo x coordinate. Mandatory when value of type attribute is x_centery or xy.
y
Origo y coordinate. Mandatory when value of type attribute is centerx_y or xy.
Extent
Attribute
Description
Properties
w
Width of the symbol graphic (in mm).
h
Height of the symbol graphic (in mm).
Scale
Attribute
Description
Properties
value
Scale factor.
Rotation
Attribute
Description
Properties
offset
Rotation offset value in degrees.
Lines
The <lines> section of the file contains all line element definitions.
Child element
Description
Properties
config
Configuration settings for lines.
line
Line element definition.
R C
Config
Child element
Description
Properties
basescale
Scale factor applied to all pointsymbols and linepatterns used in symbolization. Local scale factors will be applied on top of this basescale value.
O A
defaultroot
Default root path to location of symbol/pattern files used in symbolization.
O A
Basescale
Attribute
Description
Properties
value
Scale factor. Default value is 1.0.
Defaultroot
Attribute
Description
Properties
path
Relative path to where the pointsymbol-, linepattern- and areapattern-files, are located.
Line
The <line> nodes defines lines which are used either as a part of a complex line/area symbolization, or as a single line element. Lines can be defined as one or more pens or as linepatterns. Point symbols can be attached to the line endpoints or centered.
Linepatterns and symbols must be available as .png-files.
The name of the symbol graphic. This name is used when referencing the point definition from the script files or from other parts of the symbols.xml file.
\
pen
Defines a pen style for drawing.
O R A
multiline
Defines a multiline (two parallell lines drawn). Only valid in combination with <pen>.
O A
symbol
Defines a symbol to be drawn on the start- end- or center-point of a line. Only valid in combination with <pen>.
O A
linepattern
Defines a patternfile to use when symbolizing.
O C A
Pen
Attribute
Description
Properties
style
Valid values are “solid†and “userâ€. The “user†style is useful when defining lines custom dash/dot spacing.
width
Pen width.
O
colorname
Pen color (defined in color table).
O
dashes
Comma separated list of dash/space values used when creating custom dash/dot lines. Mandatory when style is set to user.
O
compoundarray
Comma separated list of values to specify a compound pen. Can f.ex. be used in combination with the dashes attribute to draw a line with ticks on just one side. Values are in percent of the pen width.
O
Multiline
Attribute
Description
Properties
spacing
Spacing (in mm) between the parallell lines in a multiline.
O
Symbol
Attribute
Description
Properties
name
Name of the symbol graphic to be used in combination with the pen style. Should correspond to an existing sgname already defined in a <point> node.
O
placement
Placement of the symbol on the line. Valid values are start, end and center.
O
rotoffset
Rotation offset.
O
xoffs
Offset in the X direction.
O
yoffs
Offset in the Y direction.
O
Linepattern
Attribute
Description
Properties
name
Linepattern filename (only basename, no extension). Should be located at the path pointed to by the <defaultroot> node in the config section of the file.
type
File extension
Child element
Description
Properties
scale
Scale factor used for modifying the filepattern size.
O A
ctrlpts
Control points used to place the corners of the linepattern correctly.
O A
Scale
Attribute
Description
Properties
value
Scale factor.
O
Ctrlpts
Attribute
Description
Properties
start
X and Y coordinates specifying the start point of the linepattern.
O
end
X and Y coordinates specifying the end point of the linepattern.
O
Areas
The <areas> section of the file (located on the level below the root node) contains all area symbol definitions.
Child element
Description
Properties
config
Configuration settings for areas.
area
Area element definition.
R C
Figur 3: Example of complex area style
Config
Child element
Description
Properties
defaultroot
Default root path to location of symbol/pattern files used in symbolization.
O A
Defaultroot
Attribute
Description
Properties
path
Relative path to where the pointsymbol-, linepattern- and areapattern-files, are located.
Area
Areas can be symbolized with outlines, fill patterns/textures and point symbols attached. Textures/brushbitmaps must be available as .png files.
The name of the symbol graphic. This name is used when referencing the point definition from the script files or from other parts of the symbols.xml file.
O
outline
Definition of the area outline.
O A
brush
Definition of the area brush.
O A
symbol
Defines a symbol to be drawn on the approximate top or center of an area.
O R A
brushbitmap
Defines a fill pattern bitmap for the brush.
O A
Outline
Attribute
Description
Properties
linename
References a line definition to use as outline.
Brush
Attribute
Description
Properties
style
Brush style. Valid values are [solid, hatched].
hatch
Hatch pattern. Mandatory if style is hatched. Valid values are [bdiagonal, cross, diagcross, fdiagonal, horizontal, vertical].
O
colorname
Brush color (defined in color table).
O
Symbol
Attribute
Description
Properties
name
Name of the symbol graphic to be used in combination with the pen style. Should correspond to an existing sgname already defined in a <point> node.
O
placement
Placement of the symbol on the line. Valid values are [top, center].
O
rotoffset
Rotation offset.
O
xoffs
Offset in the X direction.
O
yoffs
Offset in the Y direction.
O
Brushbitmap
Attribute
Description
Properties
name
Bitmapbrush filename (only basename, no extension). Should be located at the path pointed to by the <defaultroot> node in the config section of the file.
Labels
The <labels> section of the symbols.xml allows the creation of complex labels for display in MARIA. Labels can be based on primitive attributes. It is possible to define conditional labelling as demonstrated in the example below.
This section also contains the font descriptions used in label rules and label filters.
Font properties. Can be referenced by id from label rules.
R A
Item
Attribute
Description
Properties
id
Unique identifier for font description.
fontname
Name of font used in characteristic.
O
colorname
Font color (defined in color table).
O
style
Font style. Valid values are [condensed, light condensed, regular].
O
bold
True if text should be in bold.
O
italics
True if text should be in italics.
O
size
Font size, point (pt) size of the text string.
O
case
Indication of capitalization. Valid values are [upper, lower, mixed]. Not implemented.
O
scale
Scale factor.
O
outline
Draw labels with thin outline. Default value is true. Implemented since MARIA GDK 3.1.
O
outlinecolor
Outline color (defined in color table). Default outline color is white. Implementend since MARIA GDK 3.1
O
levelstosizes
Dynamic fontsizing.
O
Levelstosizes
Use this attribute to control dynamic scaling of fonts by specifying a comma separated list of level and fontsize-pairs [level,size]. Note that gaps in the level-range will default to the fontsize specified in 'size'. Levels lower than the minimum level defined will use size defined for the minimum level. Levels above the maximum level defined will use the size defined for the maximum level.
Name that identifies the labelrule. Can be referenced from the attribute based script files.
Child element
Description
Properties
label
Label description block.
R C A
Label
Child element
Description
Properties
condition
Rule condition.
O R C A
item
Text description.
R A
Condition
Child element
Description
Properties
condition
Rule condition.
O R C A
Attribute
Description
Properties
oper
Condition operator. Can both be used as a logical operator with values [and, or], or a compare operator with values [equal, noteq, less, lesseq, grt, grteq, in, mod, undefined].
field
Attribute field.
value
Attribute value.
remainder
Remainder value to be used together with "mod"-operator.
O
Item
Attribute
Description
Properties
type
Text item type. Valid values are [attrib, string].
characteristics
Font characteristics identifier.
value
Text to display in label. If type is attrib, the value is set to the name of the attribute text should be collected from.
break
If true, linebreak will be inserted succeeding this text item.
Labelfilter
Apply a labelfilter to remove unwanted text in the map.