...
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- This is an example import configuration file for importing UmAquo CSV data from an import directory -->
<import>
<general>
<!-- Class name of UmAquo CSV parser -->
<parserClassName>nl.wldelft.webservice.umaquo.timeseriesparsers.UmAquoCsvTimeSeriesParser</parserClassName>
<!-- Path to directory containing UmAquo libraries and schemas. If omitted then the content of the umaquo-bin
can be placed in the FEWS-bin dir -->
<binDir>%REGION_HOME%/Modules/umaquo-bin</binDir>
<!-- Directory from which CSV files are to be imported -->
<folder>$IMPORT_FOLDER$/UmAquo/CSV</folder>
<failedFolder>$IMPORT_FAILED_FOLDER$/UmAquo/CSV</failedFolder>
<backupFolder>$IMPORT_BACKUP_FOLDER$/UmAquo/CSV</backupFolder>
<idMapId>IdImportUmAquo</idMapId>
<importTimeZone>
<timeZoneOffset>+00:00</timeZoneOffset>
</importTimeZone>
</general>
<properties>
<!-- Optional: comment line prefix character. Default = # -->
<string key="COMMENT_PREFIX" value="#"/>
<!-- Optional: column separator character. Default = ; -->
<string key="COLUMN_SEPARATOR" value=";"/>
<!-- Optional: decimal character. Default = . -->
<string key="DECIMAL_SEPARATOR" value="."/>
<!-- Optional: Regular expression for date value. Default = yyyy-MM-dd -->
<string key="CSV_DATEPATTERN" value=";"/>
<!-- Optional: Regular expression for time value. Default = HH:mm:ss -->
<string key="CSV_TIMEPATTERN" value="HH:mm:ss"/>
<!-- Optional: select UmAquo schema version 2009 or 2011. Default = 2009 -->
<int key="SCHEMA_VERSION" value="2009"/>
<!-- Optional: allow lenient validation. Default = false -->
<bool key="LENIENT" value="true"/>
<!-- Optional: allow import to skip the first number of lines -->
<int key="FIRST_LINE" value="1"/>
</properties>
<!-- It is also possible to not configure timeSeriesSets. In this case all offered data will be imported as long as it can be mapped using the ID Mapping -->
<timeSeriesSet>
<moduleInstanceId>ImportUmAquo</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>MyPar</parameterId>
<locationSetId>MyLocSet</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant"/>
<readWriteMode>add originals</readWriteMode>
<synchLevel>1</synchLevel>
</timeSeriesSet>
</import>
</timeSeriesImportRun>
|
...