[Dive4elements-commits] [PATCH] Fixed CSV export for 'W fuer ungleichwertige Abflusslaengsschnitte'
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 28 14:14:18 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1362057240 -3600
# Node ID 0773f4524107c91028ce188baaa836306726b78c
# Parent 18ef819a7c9283293d6446d44635b71a5e0f5fee
Fixed CSV export for 'W fuer ungleichwertige Abflusslaengsschnitte'.
diff -r 18ef819a7c92 -r 0773f4524107 flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionExporter.java
--- 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
});
}
}
More information about the Dive4elements-commits
mailing list