Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Qualifiers can also be defined by referring to a csv file in the configuration. For that the <file> and <id> are required. By using %% can be referred to the content of columns in the csv file. So the next example below the columns "qualifierId" and "qualifierName" determine the id and name of all qualifiers present in the csv file. The columns can be used multiple times also in combination with other text as is done for the definition of the attribute "ExternalQualifierId" which will start with "LNG_KLAS_" for all qualifiers followed by the content in the "qualifierId" column. The <group> elements determines to which group of qualifiers a qualifier belongs, this is used to determine whether timeseries can be summed. Time series with different qualifiers of the same group can be summed.

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<qualifiers xmlns="http://www.wldelft.nl/fews"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/qualifiers.xsd">
	<csvFile>
		<file>vissen_lengteklasse.csv</file>
		<id>%qualifierId%</id>
		<name>%qualifierName%</name>
		<group>Vissen lengteklasse</group>
		<attribute id="ExternalQualifierId">
			<text>LNG_KLAS_%qualifierId%</text>
		</attribute>
	</csvFile>
</qualifiers>

...