ALOV logo

DOCUMENTATION

There are four kind of renderers for vector layers in ALOV Map. Default, Grade, Label and Chart

renderer is child element for layer. In turn it contains symbol elements. Layer can have any number of renderers.

Default renderer. This renderer consists of only symbol. This symbol is drawn for all shapes. You may define it implicitly. It is added automatically for layer that has no more renderers.

<layer name="implicitly"> <dataset id="1"/> <symbol fill="255:0:0"/> </layer> <layer name="explicitly"> <dataset id="2"/> <renderer type="default"><symbol fill="255:0:0"/></renderer> <renderer type="label" labelfield="NAME"><symbol fill="0:0:0"/></renderer> </layer>

You have to define the default renderer for the second layer explicitly because there is another renderer.

A Grade Renderer represents a way of symbolizing features of a Layer by drawing the symbol depends upon the value contained in the specified field or result of comparison. You may define this renderer to draw symbols for each unique data value; ranges of data or for customized conditions (formulas).

For unique comparison you have to define two attributes: equal to "yes" and field. It is name of field that value to be compared.

<renderer type="gradcolor" equal="yes" field="FIPS"> <symbol val="QLD" fill="0:100:200"/> <symbol val="NT" fill="255:128:0"/> </renderer>

The symbol contain attribute val. This is the value to be compared to the attribute data.

For ranges comparison you have to set equal to "no" and define the list of symbols with value in ascending order.

<renderer type="gradcolor" equal="no" field="POPULATION"> <symbol fill="255:255:255"/> <symbol val="100" fill="255:191:191"/> <symbol val="500" fill="255:0:0"/> </renderer>

The first symbol in list will be used if POPULATION<100, the second 100<=POPULATION<500, and the third symbol if POPULATION>=500.

For using formulas you have to omit attribute field and define syntactical correct conditionals for symbol's val attribute. The symbol will be drawn in case the result of conditional expression result is true.

<renderer type="gradcolor"> <symbol val="((INCOME98+INCOMEE99)/2&gt;100)" fill="0:128:128"/> <symbol val="NAME LIKE '%Aus%'" fill="255:0:0"/> </renderer>

A Label Renderer works quite the same as Grade renderer. Instead of field you have to define symbolfield. Besides, you have to define attribute labelfield. Labelfield is the name of the field in the dataset that stores the text values to use as labels.

<renderer type="label" labelfield="NAME" symbolfield="CAPITAL" > <symbol val="Y" size="14" font="Dialog"/> <symbol val="N" size="11" font="Monospaced"/> </renderer>


See project file

previous  top next


© ALOV 2002-2005 contact6 at alov.org