changeset 8545:c6723e5b6857

(issue1750) It is an error if there are more then two stations at the same range.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 13 Feb 2015 16:36:52 +0100
parents 76113b975829
children 522f72f43ae6
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.java	Fri Feb 13 16:17:46 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.java	Fri Feb 13 16:36:52 2015 +0100
@@ -96,6 +96,11 @@
             return retval;
         }
 
+        if (list.size() > 2) {
+            log.error("More then two measurement stations found at the same range. Bad Data!");
+            return retval;
+        }
+
         for (Integer stationId: list) {
             log.debug("Collecting SQ Relations for: "+ stationId);
             if (stationId == measurementStation) {

http://dive4elements.wald.intevation.org