[Dive4elements-commits] [PATCH 2 of 3] ImportRiver: Make waterlevels become fixation-wsts

Wald Commits scm-commit at wald.intevation.org
Wed Feb 20 12:08:34 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1361358901 -3600
# Node ID e6dc908297e81a5b0c6db0a5b68fecd322d0add6
# Parent  b5e3df1feeb41d6aca114e0d15702b2f645fa2ff
ImportRiver: Make waterlevels become fixation-wsts.

diff -r b5e3df1feeb4 -r e6dc908297e8 flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Wed Feb 20 12:14:11 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Wed Feb 20 12:15:01 2013 +0100
@@ -561,7 +561,12 @@
             parser.parse(file);
         }
 
-        waterlevels = parser.getWaterlevels();
+        // The parsed ImportWaterlevels are converted to
+        // 'fixation'-wsts now.
+        for(ImportWst iw: parser.exportWsts()) {
+            //iw.setDescription("CSV" + iw.getDescription());
+            fixations.add(iw);
+        }
     }
 
     protected void parseMeasurementStations() throws IOException {


More information about the Dive4elements-commits mailing list