[PATCH] Another tweak for flys/issue1353: Be more tolerant about river names
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 13 15:24:12 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1379078647 -7200
# Node ID 60c894b71feddfbe2e7f356e46afe023557e51c9
# Parent 0e7c667018fc026111e740dd3f61d575a03003ee
Another tweak for flys/issue1353: Be more tolerant about river names.
diff -r 0e7c667018fc -r 60c894b71fed etl/src/main/java/org/dive4elements/river/etl/aft/River.java
--- a/etl/src/main/java/org/dive4elements/river/etl/aft/River.java Fri Sep 13 12:28:13 2013 +0200
+++ b/etl/src/main/java/org/dive4elements/river/etl/aft/River.java Fri Sep 13 15:24:07 2013 +0200
@@ -82,6 +82,7 @@
ConnectedStatements aftStatements = context.getAftStatements();
String riverName = getName();
+ String lowerRiverName = riverName.toLowerCase();
Map<Long, DIPSGauge> aftDIPSGauges = new HashMap<Long, DIPSGauge>();
@@ -115,7 +116,7 @@
continue;
}
String gaugeRiver = dipsGauge.getRiverName();
- if (!gaugeRiver.equalsIgnoreCase(riverName)) {
+ if (!lowerRiverName.contains(riverName.toLowerCase())) {
log.warn(
"DIPS: MESSSTELLE '" + name +
"' is assigned to river '" + gaugeRiver +
More information about the Dive4elements-commits
mailing list