changeset 8711:02162b60cf9c

(issue1448) Also filter epoch values in sq_time_interval mode
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 24 Apr 2015 17:17:56 +0200
parents 093146703b98
children 582e970115b6
files artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Fri Apr 24 15:57:49 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Fri Apr 24 17:17:56 2015 +0200
@@ -91,7 +91,10 @@
 
             for (Iterator<Load> it = loads.iterator(); it.hasNext();) {
                 /* Skip loads without time interval for this info type. */
-                if (it.next().getSQRelationTimeIntervalId() == null) {
+                Load cur = it.next();
+                if (cur.getSQRelationTimeIntervalId() == null) {
+                    it.remove();
+                } else if (cur.isEpoch()) {
                     it.remove();
                 }
             }

http://dive4elements.wald.intevation.org