Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.java @ 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 | 9a5b3079aad4 |
children | 958342db7a15 |
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) {