[Dive4elements-commits] [PATCH 1 of 8] ImportRiver: Preparing wst-based waterleveldifferences

Wald Commits scm-commit at wald.intevation.org
Tue Mar 12 09:34:30 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1363010465 -3600
# Node ID a981222b626047280c02a352eb6400c2e4ad14e3
# Parent  a75acd0d5feeb48dc8aa3dc7fcdf6532d7e95c44
ImportRiver: Preparing wst-based waterleveldifferences.

diff -r a75acd0d5fee -r a981222b6260 flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Tue Mar 12 08:23:55 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Mon Mar 11 15:01:05 2013 +0100
@@ -130,6 +130,9 @@
 
     protected List<ImportWst> floodProtection;
 
+    /** Wst-structures from waterlevel-difference-csv files. */
+    protected List<ImportWst> waterlevelDifferences;
+
     protected List<ImportBedHeight> bedHeightSingles;
 
     protected List<ImportBedHeight> bedHeightEpochs;
@@ -204,6 +207,7 @@
         fixations                 = new ArrayList<ImportWst>();
         officialLines             = new ArrayList<ImportWst>();
         floodWater                = new ArrayList<ImportWst>();
+        waterlevelDifferences     = new ArrayList<ImportWst>();
         floodProtection           = new ArrayList<ImportWst>();
         sedimentDensities         = new ArrayList<ImportSedimentDensity>();
         morphologicalWidths       = new ArrayList<ImportMorphWidth>();
@@ -560,10 +564,11 @@
             parser.parse(file);
         }
 
+        // TODO use own List<ImportWst> for waterlevels
         // The parsed ImportWaterlevels are converted to
         // 'fixation'-wsts now.
         for(ImportWst iw: parser.exportWsts()) {
-            //iw.setDescription("CSV" + iw.getDescription());
+            iw.setDescription("CSV/" + iw.getDescription());
             fixations.add(iw);
         }
     }


More information about the Dive4elements-commits mailing list