Versions Compared

Key

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

...

Code Block
languagexml
titleExample annotations import
<?xml version="1.0" encoding="UTF-8"?>
<!--Delft FEWS Maas -->
<timeSeriesImportRun 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/timeSeriesImportRun.xsd">
   <import>
      <general>
         <importType>generalCSV</importType>
         <folder>import/annotations</folder>
         <table>
            <dateTimeColumn name="CREATION_TIME" pattern="dd-MM-yyyy HH:mm"/>
            <startDateTimeColumn name="START" pattern="dd-MM-yyyy HH:mm"/>
            <endDateTimeColumn name="END" pattern="dd-MM-yyyy HH:mm"/>
            <locationColumn name="LOC"/>
            <valueColumn name="ANNOTATION"/>
            <propertyColumn name="CATEGORIE" key="Categorie"/>
            <propertyColumn name="SUB-CATEGORIE" key="Sub-Categorie"/>
         </table>
      </general>
      <annotationLocationSetId>Stand alone Stations</annotationLocationSetId>
   </import>
</timeSeriesImportRun>

There are special rules when it comes to overwriting annotations for the same location-time combination.

When annotations have different content for either the annotation itself or any of the properties, they are considered unique annotations and will exist next to eachother (this is solved in the background of FEWS by shifting newer annotations by milliseconds).

When an annotation is imported with the exact same location-time combination and contents of the annotation text and all properties for an already existing annotation, then it is checked whether the start and or end time has changed and if so, they are updated . But when the start and end time are also the same the "new" annotation is considered the same and is ignored.

Example: Import of Meteosat images as time-series

...