[PATCH 3 of 3] Two minor importer changes

Wald Commits scm-commit at wald.intevation.org
Wed Aug 1 13:21:52 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1533122494 -7200
# Node ID df6f1b5806f6917b6342785eba7f655e7f65086a
# Parent  8eddc2393750fa2fe3517645bce41adaad7d5edb
Two minor importer changes

diff -r 8eddc2393750 -r df6f1b5806f6 backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java	Wed Aug 01 13:20:38 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/uinfo/parsers/VegetationParser.java	Wed Aug 01 13:21:34 2018 +0200
@@ -159,7 +159,7 @@
 
     @Override
     protected VegetationZoneImport createKmLineImport(final Double km, final String[] values) {
-        int daysLimit = 367;
+        int daysLimit = 365;
         int classNo = 0;
         try {
             if (!values[this.cols.get(ColTitlePattern.OVERFLOW_LIMIT)].trim().isEmpty())
diff -r 8eddc2393750 -r df6f1b5806f6 backend/src/main/java/org/dive4elements/river/model/TimeInterval.java
--- a/backend/src/main/java/org/dive4elements/river/model/TimeInterval.java	Wed Aug 01 13:20:38 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/TimeInterval.java	Wed Aug 01 13:21:34 2018 +0200
@@ -33,7 +33,7 @@
     static {
         YEAR_ONLY_DATE = Calendar.getInstance();
         YEAR_ONLY_DATE.clear();
-        YEAR_ONLY_DATE.set(0, Calendar.DECEMBER, 31, 3, 5, 6);
+        YEAR_ONLY_DATE.set(0, Calendar.DECEMBER, 31, 3, 6, 5);
     }
 
     private Integer id;


More information about the Dive4Elements-commits mailing list