Mercurial > dive4elements > river
changeset 4238:50273de4cf63
flys/issue825/2 Fix labeling of Analysisperiods (like A1, A2....)
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 24 Oct 2012 14:29:10 +0200 |
parents | 640adb7bced5 |
children | 293a0d098606 |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/DeltaWtExporter.java |
diffstat | 1 files changed, 6 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/DeltaWtExporter.java Wed Oct 24 14:27:21 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/DeltaWtExporter.java Wed Oct 24 14:29:10 2012 +0200 @@ -162,23 +162,18 @@ String analysisTemplate = getAnalysisTemplate(); - int analysisCount = 1; - for (KMIndex<AnalysisPeriod []> periods: analysisPeriods) { - // Typically resulting in A1,A2... - String analyisS = MessageFormat.format( - analysisTemplate, analysisCount); - for (KMIndex.Entry<AnalysisPeriod []> kmEntry: periods) { - + String kmS = kmF.format(kmEntry.getKm()); + int analysisCount = 1; for (AnalysisPeriod period: kmEntry.getValue()) { + // Typically resulting in A1,A2... + String analyisS = MessageFormat.format(analysisTemplate, + analysisCount); QWD [] qwds = period.getQWDs(); - /* issue825 - km; Ereignis, Abfluss, GEMESSENER Wasserstand; Status (RECHTSBÜNDIG), del W - */ if (qwds != null) { for (QWD qwd: qwds) { @@ -196,9 +191,9 @@ deltaWS }); } } + ++analysisCount; } } - ++analysisCount; } writer.flush(); }