Versions Compared

Key

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

...

Location Attribute Based Events

Since 2019.01 it is possible to define correlation events based on (multivalued) location attributes.

The advantage to this is the possibility to store the events in csv format

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>

...


<correlationEventSets xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/correlationEventSets.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

...


 xmlns="http://www.wldelft.nl/fews">

...


   <timeZone>GMT</timeZone>
   <correlationEventSet>
      <locationSetId>MultiValuedAttributePeakHeights</locationSetId>
      <eventParameterLocationAttributeId>PEAK_HEIGHT_PAR</eventParameterLocationAttributeId>
      <eventTimeLocationAttributeId>PEAK_HEIGHT_TIME</eventTimeLocationAttributeId>
      <eventValueLocationAttributeId>PEAK_HEIGHT_VALUE</eventValueLocationAttributeId>
   

...

</correlationEventSet>
</correlationEventSets>
Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Juzer Dhondia (WL | Delft Hydraulics) -->
<!--Sample XML file generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)-->
<locationSets 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/locationSets.xsd" version="1.1">
   <locationSet id="MultiValuedAttributePeakHeights">
      <csvFile>
         <file>MultiValuedAttributePeakHeightsLocations.csv</file>
         <geoDatum>WGS 1984</geoDatum>
         <id>%ID%</id>
         <name>%NAME%</name>
         <x>%X%</x>
         <y>%Y%</y>
         <z>0</z>
         <attributeFile>
            <csvFile>MultiValuedAttributePeakHeightsLocationAttributes.csv</csvFile>
            <id>%ID%</id>
            <dateTimePattern>dd-MM-yyyy</dateTimePattern>
            <attribute id="PEAK_HEIGHT_PAR">
               <text>%PAR%</text>
            </attribute>
            <attribute id="PEAK_HEIGHT_TIME">
               <dateTime>%TIME%</dateTime>
            </attribute>
            <attribute id="PEAK_HEIGHT_VALUE">
               <number>%VALUE%</number>
            </attribute>
         </attributeFile>
      </csvFile>
   </locationSet>
</locationSets>
Code Block
titleMultiValuedAttributePeakHeightsLocationAttributes.csv
ID,PAR,VALUE,TIME,ACTIVE
PH_locA,H.m,0.1,01-01-2001,true
PH_locA,H.m,0.2,02-02-2002,false
PH_locA,H.m,0.3,03-03-2003,true
PH_locA,H.sim,0.4,04-04-2004,false
PH_locA,H.sim,0.5,05-05-2005,true
PH_locA,H.sim,0.6,06-06-2006,true
PH_locB,H.m,1.1,11-10-2011,true
PH_locB,H.m,1.2,12-10-2012,false
PH_locB,H.m,1.3,13-10-2013,true
PH_locB,H.m,1.4,14-10-2014,false
PH_locB,H.sim,1.5,15-10-2015,true
PH_locB,H.sim,1.6,16-10-2016,false
PH_locB,H.sim,1.7,17-10-2017,false
PH_locB,H.sim,1.8,18-10-2018,true

Anchor
_Toc154574435
_Toc154574435
Anchor
_Toc95297289
_Toc95297289
TravelTimes

...