[PATCH 1 of 2] Renamed salix column to iota

Wald Commits scm-commit at wald.intevation.org
Thu Aug 16 08:47:57 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1534401866 -7200
# Node ID 66a43d9f65c8ae8c15e4040264e839182f2b8c11
# Parent  43c975f8ab92f4330fc3e2e5530086620fe0bbc6
Renamed salix column to iota

diff -r 43c975f8ab92 -r 66a43d9f65c8 backend/src/main/java/org/dive4elements/river/importer/Config.java
--- a/backend/src/main/java/org/dive4elements/river/importer/Config.java	Wed Aug 15 16:26:22 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/Config.java	Thu Aug 16 08:44:26 2018 +0200
@@ -134,7 +134,7 @@
     }
 
     private enum UInfoSkip {
-        SALIX("salix"), //
+        SALIX("iota"), //
         VEGETATION("vegetation");
 
         private final String name;
diff -r 43c975f8ab92 -r 66a43d9f65c8 backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/SalixParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/SalixParser.java	Wed Aug 15 16:26:22 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/SalixParser.java	Thu Aug 16 08:44:26 2018 +0200
@@ -44,7 +44,7 @@
     private static final Pattern META_EVALUATOR = Pattern.compile("^#\\sAuswerter:\\s*([^;]*).*", Pattern.CASE_INSENSITIVE);
 
     private enum ColTitlePattern {
-        FACTOR("Salix.Fa.tor\\s*\\[(.*)\\].*"), //
+        FACTOR("Iota\\s*\\[(.*)\\].*"), //
         MWMNW("\\(MW-MNW\\).*\\[(.*)\\].*");
 
         private final Pattern pattern;
@@ -129,7 +129,7 @@
             }
         }
         if ((this.cols.get(ColTitlePattern.FACTOR) < 0) || (this.cols.get(ColTitlePattern.MWMNW) < 0)) {
-            logError("Column of the salix factor and/or mnw-mw-diff could not be identified");
+            logError("Column of the iota value and/or mnw-mw-diff could not be identified");
             this.headerParsingState = ParsingState.STOP;
             return false;
         }
@@ -139,7 +139,7 @@
     @Override
     protected SalixKmLineImport createKmLineImport(final Double km, final String[] values) {
         if (Double.isNaN(parseDoubleWithNull(values[this.cols.get(ColTitlePattern.FACTOR)]).doubleValue())) {
-            logError("Salix factor not found in line " + this.in.getLineNumber());
+            logError("Iota not found in line " + this.in.getLineNumber());
             return null;
         }
         if (Double.isNaN(parseDoubleWithNull(values[this.cols.get(ColTitlePattern.MWMNW)]).doubleValue())) {


More information about the Dive4Elements-commits mailing list