[PATCH 15 of 45] (issue1750) It is an error if there are more then two stations at the same range
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 10 17:05:43 CET 2015
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1423841812 -3600
# Node ID c6723e5b68575caf12f29f8ec4a7bb77aa502687
# Parent 76113b9758298a3d32e7458d89b802787c568709
(issue1750) It is an error if there are more then two stations at the same range.
diff -r 76113b975829 -r c6723e5b6857 artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.java
--- 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) {
More information about the Dive4Elements-commits
mailing list