Versions Compared

Key

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

...

What

Locations.xml

Required

yes

Description

Definitions of all locations

schema location

httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/locations.xsd

DELFT-FEWS is a location oriented system. All time series data must be referenced to a (geographic) location. This location must be identified by its geographic coordinates within the coordinate system used. When available on the file system, the name of the XML file is for example:

...

optional element to customize the location label in the main map display.
You can use the following tags:
%ID%, %NAME%, %DESCRIPTION%, %LAST_VALUE%, %LAST_VALUE_TIME%,
%FORECAST_START_TIME%, %MAXIMUM_VALUE%, %MAXIMUM_VALUE_TIME%, %MINIMUM_VALUE%, %MINIMUM_VALUE_TIME%

An example:

No Format

<label>%NAME%  %LAST_VALUE%   %LAST_VALUE_TIME%</label>

or

No Format

<label>%NAME%   max:%MAXIMUM_VALUE%  min: %MINIMUM_VALUE% </label>

...

By default (if not defined) the following tool tip is used.

No Format

Name: %NAME%\n
Desc: %DESCRIPTION%\n
Last value \[%LAST_VALUE%\] Time \[%LAST_VALUE_TIME%\]\n
Forecast Start Time \[%FORECAST_START_TIME%\]\n
Maximum \[%MAXIMUM_VALUE%\] Time \[%MAXIMUM_VALUE_TIME%\]

A more advanced example is, using HTML (use the <BR> tag to start new line):

No Format

<toolTip><![CDATA[<html>
    <table id="details">
      <tr>
	<td width="50" valign="top">ID</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%ID%</td>
      </tr>
      <tr>
	<td width="50" valign="top">Naam</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%NAME%</td>
      </tr>
      <tr>
	<td width="50" valign="top">Type</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%DESCRIPTION%</td>
      </tr>
      <tr>
	<td width="50" valign="top">Foto</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">
	   <a href="file:/$FOTOSDIR$/%ID%.jpg" >
		<img src="file:/$FOTOSDIR$/thumbs/%ID%.jpg" border="0">
	   </a>
	</td>
      </tr>
      <tr>
	<td width="50" valign="top">Documentatie</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">
	   <a href="file:/$PDFDIR$/%ID%.pdf">%ID%.pdf</a>
	</td>
      </tr>
    </table>
</html>
  ]]></toolTip>

Please find below another example of a html tooltip containing a hyperlink. This hyperlink consists of a fixed and a dynamic part. The dynamic part is filled in with location attributes

No Format
<toolTip><![CDATA[<html>
	<table id="details">
	  <tr>
	<td width="160" valign="top">Peilbuis</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%ID%</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">Naam</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%REGION% - %ID%</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">Regio</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%REGION%</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">XY</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">(%X%, %Y%)</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">Ellitrack serienummer</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%IMPORT_ID%</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">BRO GMN ID</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">onbekend</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">BRO GMW ID</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top"><b><a href="https://www.broloket.nl/ondergrondgegevens?bro-id=%BRO_GMW_ID%">%BRO_GMW_ID%</a></b></td>
	  </tr>
	  <tr>
	<td width="160" valign="top">BRO GLD ID</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%BRO_GLD_ID%</td>
	  </tr>
	  <tr>
	<td width="160" valign="top">Hoogte bk peilbuis [m NAP]</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%H_BK_PEILBUIS%</td>
		</tr>
	  <tr>	<td width="160" valign="top">Hoogte bk staaf [m NAP]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%H_BK_STAAF%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Hoogte groef t.o.v. bk staaf [m]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%H_GROEF_TOV_STAAF%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Hoogte groef [m NAP]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%H_GROEF%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Hoogte maaiveld [m NAP]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%H_MAAIVELD%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Kabel-lengte [m]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%KABEL_LENGTE%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Filter-diepte [m-mv]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%FILTER_DIEPTE%</td>	  </tr>
	  <tr>	<td width="160" valign="top">Diepte stalen fundering [m-mv]</td>	<td width="5" valign="top">:</td>	<td width="200" valign="top">%DIEPTE_STALEN_FUNDERING%</td>	  </tr>

	  <tr>
	<td width="160" valign="top">Opmerking</td>
	<td width="5" valign="top">:</td>
	<td width="200" valign="top">%OPMERKING%</td>
	  </tr>
	</table>
</html>
  ]]></toolTip>
parentLocationId 

Optional Id of a location that functions as a parent. In the filters child locations (locations that refer to a parent) are normally invisible. However, they are displayed in the graphs whenever a parent is selected. 

...