changeset 6890:8ca5d0e3c438 double-precision

BWASTR-Import: name of tributary contains name of river, not the other way round.
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 21 Aug 2013 15:32:53 +0200
parents f1aeb6a60380
children ee8b947b3f11
files backend/src/main/java/org/dive4elements/river/importer/Importer.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/Importer.java	Wed Aug 21 12:40:42 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/Importer.java	Wed Aug 21 15:32:53 2013 +0200
@@ -183,7 +183,7 @@
                 // Now link rivers with official numbers.
                 for(ImportRiver river: infoGewParser.getRivers()) {
                     for(Map.Entry<String, Long> entry: map.entrySet()) {
-                        if (StringUtil.containsIgnoreCase(entry.getKey(), river.getName())) {
+                        if (StringUtil.containsIgnoreCase(river.getName(), entry.getKey())) {
                             river.setOfficialNumber(entry.getValue());
                             log.debug(river.getName() + " is mapped to bwastr " + entry.getValue());
                         }

http://dive4elements.wald.intevation.org