You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This import is not yet available in DELFT-FEWS version 2018.02 as it has been developed specifically for the FFFS project.

Imports pollution incident ans suspension of monitoring data from a JSON web service provided by the UK Environmental Agency (EA)  to meet UK reporting obligations under the EU Bathing Water Directive.

The documentation for the BWQ webservice API is provided here: https://environment.data.gov.uk/bwq/doc/api-reference-v0.6.html

The data items of interest here are only the "pollution incidents" and "suspension of monitoring" described in this document.

The parser for this data has the ID "UkEaBwq" and can parse both the data for "pollution incidents" and "suspension of monitoring" as the JSON data retrieved for both data items has a similar structure, the names of data fields have been made configurable as properties, shown in the configuration examples below.


Pollution Incident parser configuration
<?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>UkNeaBwq</importType>
			<serverUrl>https://environment.data.gov.uk/doc/bathing-water-quality/pollution-incident</serverUrl>
<!--			<user>public</user>-->
<!--			<password>none</password>-->
			<relativeViewPeriod unit="day" start="-10" end="0"/>
			<importTimeZone>
				<timeZoneOffset>+00:00</timeZoneOffset>
			</importTimeZone>
		</general>
		<properties>
			<string key="idProperty" value="incidentNotation"/>
			<string key="valueProperty" value="incidentType.notation"/>
			<string key="locationProperty" value="samplingPoint.notation"/>
			<string key="startDateTimeProperty" value="startOfIncident"/>
			<string key="recordDateTimeProperty" value="som_recordDateTime"/>
			<string key="endDateTimeProperty" value="endOfIncident"/>
			<string key="importProperties" value="incidentNotation, som_recordDateTime, startOfIncident, expectedEndOfIncident, endOfIncident, bathingWater.notation, samplingPoint.notation, nirsRef"/>
			<bool key="importHistory" value="true"/>
			<int key="pageSize" value="10"/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>ImportBWQIncidents</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Warning.level.manual</parameterId>
			<locationSetId>BWQFS.sites</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>


 

 

  • No labels