[PATCH 1 of 2] Comments
Wald Commits
scm-commit at wald.intevation.org
Tue Oct 15 19:19:54 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1381857524 -7200
# Branch double-precision
# Node ID 588b02a4078afddbd637bdbd1665557fa50f3126
# Parent 2ce7bacc940fc7940c21e5bb106d53800c2976b1
Comments.
diff -r 2ce7bacc940f -r 588b02a4078a backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java Tue Oct 15 18:41:55 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java Tue Oct 15 19:18:44 2013 +0200
@@ -192,7 +192,7 @@
if (aktAbfluesse != null) {
if (kmHist1 != null && kmHist2 != null
- && kmHist1.compareTo(kmHist2) < 0) {
+ && kmHist1.compareTo(kmHist2) < 0) { // stations descending in file
BigDecimal t = minKm; minKm = maxKm; maxKm = t;
}
addInterval(minKm, maxKm, aktAbfluesse);
@@ -341,6 +341,7 @@
kmHist2 = kmHist1;
kmHist1 = kaem;
+ // iteratively determine actual km-range
if (kaem.compareTo(minKm) < 0) {
minKm = kaem;
}
@@ -392,7 +393,7 @@
wst.setUnit(new ImportUnit(einheit));
if (kmHist1 != null && kmHist2 != null
- && kmHist1.compareTo(kmHist2) < 0) {
+ && kmHist1.compareTo(kmHist2) < 0) { // stations descending in file
BigDecimal t = minKm; minKm = maxKm; maxKm = t;
}
addInterval(minKm, maxKm, aktAbfluesse);
More information about the Dive4elements-commits
mailing list