[PATCH] BWASTR-Import: name of tributary contains name of river, not the other way round
Wald Commits
scm-commit at wald.intevation.org
Wed Aug 21 15:32:57 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1377091973 -7200
# Branch double-precision
# Node ID 8ca5d0e3c4383390ae49dc810ec9b66874245255
# Parent f1aeb6a60380f9dabe7b783bb4d81a7ca3e44277
BWASTR-Import: name of tributary contains name of river, not the other way round.
diff -r f1aeb6a60380 -r 8ca5d0e3c438 backend/src/main/java/org/dive4elements/river/importer/Importer.java
--- 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());
}
More information about the Dive4elements-commits
mailing list