Mercurial > dive4elements > river
changeset 7009:60c894b71fed
Another tweak for flys/issue1353: Be more tolerant about river names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 13 Sep 2013 15:24:07 +0200 |
parents | 0e7c667018fc |
children | 7903bacdfba3 |
files | etl/src/main/java/org/dive4elements/river/etl/aft/River.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 +