Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

The following example of an Import Module Instance will import the time series as non-equidistant series.

Code Block
xml
xml
titleImportDINOImportDINOService.xml
<?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">
  <import>
    <general>
      <importType>DINO<<importType>dinoservice</importType>
      <folder>$IMPORT_FOLDER_DINO$</folder>
<serverUrl>http://nit.dinoservices.nl:80/gws-v10/gws-v10</serverUrl>
       <failedFolder>$IMPORT_FAILED_FOLDER_DINO$</failedFolder><relativeViewPeriod unit="day" start="-365" end="0" />
      <idMapId>IdImportDINO<<idMapId>IdImportDino</idMapId>
      <unitConversionsId>ImportUnitConversions</unitConversionsId>
      <importTimeZone>
        <timeZoneOffset>+00:00</timeZoneOffset>
<!--        <timeZoneOffset>+01:00</timeZoneOffset>-->
      </importTimeZone>
      <dataFeedId>DINO<<dataFeedId>tnonitg</dataFeedId>
    </general>
    <timeSeriesSet>
      <moduleInstanceId>ImportDinoService</moduleInstanceId>
      <valueType>scalar</valueType>
      <parameterId>G.m</parameterId>
      <moduleInstanceId>ImportDINO<<locationId>NL-B32C0677-001</locationId>
<!--      <locationSetId>TNO-sensors(SWE)</locationSetId> -->
      <timeSeriesType>external historical</timeSeriesType>
      <timeStep unit="nonequidistant" />
      <readWriteMode>add originals</readWriteMode>
      <synchLevel>1</synchLevel>
      <expiryTime unit="day" multiplier="365"/>
    </timeSeriesSet>
    <timeSeriesSet>
      <moduleInstanceId>ImportDinoService</moduleInstanceId>
      <valueType>scalar</valueType>
      <parameterId>G.stat.gem</parameterId>
      <locationId>NL-B32C0677-001</locationId>
<!--      <locationSetId>TNO-sensors(SWE)</locationSetId> -->
      <timeSeriesType>external historical</timeSeriesType>
      <timeStep unit="nonequidistant" />
      <readWriteMode>add originals</readWriteMode>
      <synchLevel>1</synchLevel>
      <expiryTime unit="day" multiplier="365"/>
    </timeSeriesSet>
    <timeSeriesSet>
      <moduleInstanceId>ImportDinoService</moduleInstanceId>
      <valueType>scalar</valueType>
      <parameterId>G.meting</parameterId>
stat.min</parameterId>
      <locationId>NL-B32C0677-001</locationId>
<!--      <locationSetId>TNO-sensors(SWE)</locationSetId> -->
      <timeSeriesType>external historical</timeSeriesType>
       <locationSetId>DINO_G.meting_nonequidistant</locationSetId><timeStep unit="nonequidistant" />
      <readWriteMode>add originals</readWriteMode>
      <synchLevel>1</synchLevel>
      <expiryTime unit="day" multiplier="365"/>
    </timeSeriesSet>
    <timeSeriesSet>
      <moduleInstanceId>ImportDinoService</moduleInstanceId>
      <valueType>scalar</valueType>
      <parameterId>G.stat.max</parameterId>
      <locationId>NL-B32C0677-001</locationId>
<!--      <locationSetId>TNO-sensors(SWE)</locationSetId> -->
      <timeSeriesType>external historical</timeSeriesType>
      <timeStep unit="nonequidistant" />
      <readWriteMode>add originals</readWriteMode>
      <synchLevel>1</synchLevel>
      <expiryTime unit="day" multiplier="365"/>
    </timeSeriesSet>    
  </import>
</timeSeriesImportRun>

...

Info

Defines mappings between DINO and FEWS parameters and locations.

Code Block
xml
xml
titleMapIdTmxMapIdDinoService.xml
<?xml version="1.0" encoding="UTF-8"?>
<idMap version="1.1" 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/idMap.xsd" version="1.1">
	<!--DINO locaties-->
	<map internalLocation="B45F0142" internalParameter="G.meting" externalLocation="B45F0142" externalParameter="STAND (MV)" externalParameterQualifier="1"/>
	<map internalLocation="B51F0423" internalParameter="G.meting" externalLocation="B51F0423" externalParameter="STAND (MV)" externalParameterQualifier="1"/>
</idMap>">


	<parameter internal="G.m" external="findMeetreeks" externalQualifier="SFL"></parameter>
	<parameter internal="G.stat.max" external="findGrondwaterStatistiek" externalQualifier="SFL" externalQualifier1="MAX_LEVEL"></parameter>
	<parameter internal="G.stat.min" external="findGrondwaterStatistiek" externalQualifier="SFL" externalQualifier1="MIN_LEVEL"></parameter>
	<parameter internal="G.stat.gem" external="findGrondwaterStatistiek" externalQualifier="SFL" externalQualifier1="MEAN_LEVEL"></parameter>
	
<!--data reeksen voor grondwatergegevens: level-->
	<location internal="NL-B01D0040-001" external="B01D0040-001"/>
	<location internal="NL-B03D0308-001" external="B03D0308-001"/>
	<location internal="NL-B03G0080-001" external="B03G0080-001"/>
	<location internal="NL-B03G0080-002" external="B03G0080-002"/>
	<location internal="NL-B06F0094-001" external="B06F0094-001"/>
	<location internal="NL-B06F0094-002" external="B06F0094-002"/>
	<location internal="NL-B06F0094-003" external="B06F0094-003"/>
	...
</idMap>	

Important in this configuration is the externalParameterQualifierexternalQualifier, this is used to indicate the Filternumber.

...

map the statistical parameters to FEWS parameters.

GrondWaterService WSDL

GrondwaterService.wsdl

Example SOAP request and response/

Code Block
xml
xml
titleGWS_PutB45H0224.csv

Titel: null;;;;;;;;;;;
Gebruikersnaam: AAAAAAAAA;;;;;;;;;;;
Periode aangevraagd: 01/01/1800-12/09/2007;;;;;;;;;;;
Datum: 12/09/2007;;;;;;;;;;;
Referentie: Maaiveld (MV);;;;;;;;;;;

LOCATIE;FILTERNUMMER;EXTERNE AANDUIDING;X-COORDINAAT;Y-COORDINAAT;MAAIVELD NAP;GESCHAT;MEETPUNT NAP;BOVENKANT FILTER;ONDERKANT FILTER;START DATUM;EIND DATUM
B45H0224;1;45HL0037;179790;408310;1691;;1696;1496;1446;28-2-1974;6-12-1989
B45H0224;1;45HL0037;179790;408310;1691;;1684;1534;1484;6-12-1989;29-11-1999

LOCATIE;FILTERNUMMER;PEIL DATUM TIJD;STAND (MV);BIJZONDERHEID;;;;;;;
B45H0224;1;28-2-1974 12:02;103;;;;;;;;
B45H0224;1;14-3-1974 12:03;95;;;;;;;;
B45H0224;1;28-3-1974 12:03;97;;;;;;;;
B45H0224;1;16-4-1974 12:04;110;;;;;;;;
B45H0224;1;29-4-1974 12:04;106;;;;;;;;
B45H0224;1;14-5-1974 12:05;106
B45H0224;1;28-5-1974 12:05;115
B45H0224;1;14-6-1974 12:06;113
B45H0224;1;28-6-1974 12:06;100

java source code

Ground Water Levels - Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.gws.dino.tno.nl/">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:findMeetreeks>
         <WELL_NITG_NR>B14G0057</WELL_NITG_NR>
         <WELL_TUBE_NR>002</WELL_TUBE_NR>
         <START_DATE>2007-01-01</START_DATE>
         <END_DATE>2008-12-31</END_DATE>
         <UNIT>SFL</UNIT>
      </ws:findMeetreeks>
   </soapenv:Body>
</soapenv:Envelope>
Code Block
xml
xml
titleGround Water Levels - Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:findMeetreeksResponse xmlns:ns2="http://ws.gws.dino.tno.nl/">
         <GROUND_WATER_LEVELS>
            <LEVELS>
               <DATE>2007-01-01+01:00</DATE>
               <LEVEL>187.0</LEVEL>
               <REMARK/>
            </LEVELS>
            <LEVELS>
               <DATE>2007-01-02+01:00</DATE>
               <LEVEL>190.0</LEVEL>
               <REMARK/>
            </LEVELS>
            <LEVELS>
               <DATE>2007-01-03+01:00</DATE>
               <LEVEL>193.0</LEVEL>
               <REMARK/>
            </LEVELS>
            <LEVELS>
               <DATE>2007-01-04+01:00</DATE>
               <LEVEL>188.0</LEVEL>
               <REMARK/>
            </LEVELS>
            <LEVELS>
               <DATE>2007-01-05+01:00</DATE>
               <LEVEL>190.0</LEVEL>
               <REMARK/>
            </LEVELS>
            <LEVELS>
               <DATE>2007-01-05+01:00</DATE>
               <LEVEL>189.0</LEVEL>
               <REMARK/>
            </LEVELS>
         </GROUND_WATER_LEVELS>
      </ns2:findMeetreeksResponse>
   </S:Body>
</S:Envelope>

java source code

DinoServiceTimeSeriesParserDinoTimeSeriesParser.java