[PATCH] (Issue 1353): Add warning when a gauge is skipped because of station

Wald Commits scm-commit at wald.intevation.org
Mon Sep 16 12:51:25 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1379328682 -7200
# Node ID a2d61401bd92a3b77abab835b59562f0ccd10e4f
# Parent  acb63fd3c8d39aeaef9c76a000f07bb106cabe11
(Issue 1353): Add warning when a gauge is skipped because of station

diff -r acb63fd3c8d3 -r a2d61401bd92 etl/src/main/java/org/dive4elements/river/etl/aft/SyncContext.java
--- a/etl/src/main/java/org/dive4elements/river/etl/aft/SyncContext.java	Mon Sep 16 09:52:28 2013 +0200
+++ b/etl/src/main/java/org/dive4elements/river/etl/aft/SyncContext.java	Mon Sep 16 12:51:22 2013 +0200
@@ -119,6 +119,10 @@
             double station = gauge.getStation();
             if (station >= from && station <= to) {
                 result.put(entry.getKey(), gauge);
+            } else {
+                log.warn("DIPS: Skipping Gauge: " + gauge.getName() +
+                        " because it is at Station: " + station +
+                        " and the river is limited to: " + from + " - " + to);
             }
         }
 


More information about the Dive4elements-commits mailing list