Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java @ 9294:7a8b9331a946
Moved waterlevel metadata block to global metadata, because its only written once
author | gernotbelger |
---|---|
date | Tue, 24 Jul 2018 16:55:43 +0200 |
parents | 9b16f58c62a7 |
children | 7100a555607c |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java Tue Jul 24 16:02:40 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java Tue Jul 24 16:55:43 2018 +0200 @@ -24,7 +24,6 @@ import org.dive4elements.river.artifacts.common.IResultType; import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; import org.dive4elements.river.artifacts.common.ResultRow; -import org.dive4elements.river.artifacts.sinfo.common.SInfoI18NStrings; import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; import org.dive4elements.river.model.Attribute.AttributeKey; @@ -58,8 +57,6 @@ private final String[] waterlevelLabels; - // private final WstInfo wstInfo; - private final int maxWaterlevelPdf = 3; public interface ValueGetter { @@ -94,21 +91,7 @@ @Override protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) { - if (this.waterlevelLabels.length >= 1) { - // "##METADATEN WASSERSPIEGELLAGE" - exportContextCSV.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL); - for (int i = 1; i <= getWaterlevelCount(); i++) { - // "# Bezeichnung der Wasserspiegellage: " - final String label = this.getWaterlevelLabel(i - 1); - exportContextCSV.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_NAME, String.format("%d: %s", i, label)); - } - // "# Bezugspegel: " - for (final ResultRow row : getRows()) { - exportContextCSV.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_GAUGE, row.getValue(SInfoResultType.gaugeLabel)); - break; - } - } - exportContextCSV.writeBlankLine(); + /* nothing to do, as we never have several results, everything is written into the general header */ } @Override