changeset 5141:0773f4524107

Fixed CSV export for 'W fuer ungleichwertige Abflusslaengsschnitte'.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 28 Feb 2013 14:14:00 +0100
parents 18ef819a7c92
children 74ae3bba1ccc
files flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionExporter.java
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionExporter.java	Thu Feb 28 14:04:41 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionExporter.java	Thu Feb 28 14:14:00 2013 +0100
@@ -61,7 +61,8 @@
             msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER),
             msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER),
             msg(CSV_CW_HEADER, DEFAULT_CSV_CW_HEADER),
-            msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER)
+            msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER),
+            msg(CSV_Q_DESC_HEADER, DEFAULT_CSV_Q_DESC_HEADER)
         });
     }
 
@@ -70,8 +71,7 @@
         CSVWriter writer,
         WQKms     wqkms,
         boolean   atGauge,
-        boolean   isQ,
-        boolean   isRange
+        boolean   isQ
     ) {
         logger.debug("WaterlevelExporter.wQKms2CSV");
 
@@ -85,6 +85,7 @@
         for (int i = 0; i < size; i ++) {
             result = wqkms.get(i, result);
 
+            String name = wqkms.getName();
             String wc = "";
             if (wqkms instanceof WQCKms) {
                 wc = wf.format(result[3]);
@@ -94,7 +95,8 @@
                 kmf.format(result[2]),
                 wf.format(result[0]),
                 wc,
-                qf.format(result[1])
+                qf.format(result[1]),
+                name
             });
         }
     }

http://dive4elements.wald.intevation.org