Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8544:76113b975829 | 8545:c6723e5b6857 |
---|---|
94 if (list == null || list.isEmpty()) { | 94 if (list == null || list.isEmpty()) { |
95 log.error("Did not even find one measurement station. Broken Query?"); | 95 log.error("Did not even find one measurement station. Broken Query?"); |
96 return retval; | 96 return retval; |
97 } | 97 } |
98 | 98 |
99 if (list.size() > 2) { | |
100 log.error("More then two measurement stations found at the same range. Bad Data!"); | |
101 return retval; | |
102 } | |
103 | |
99 for (Integer stationId: list) { | 104 for (Integer stationId: list) { |
100 log.debug("Collecting SQ Relations for: "+ stationId); | 105 log.debug("Collecting SQ Relations for: "+ stationId); |
101 if (stationId == measurementStation) { | 106 if (stationId == measurementStation) { |
102 /* Skip the same station */ | 107 /* Skip the same station */ |
103 continue; | 108 continue; |