Mercurial > dive4elements > river
changeset 7600:410fbd6a6d01
issue1596: include river wst unit in csv header for middle bed height.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 27 Nov 2013 11:06:25 +0100 |
parents | 520c6384c72e |
children | 46aeac6901d5 |
files | artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Wed Nov 27 11:05:38 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Wed Nov 27 11:06:25 2013 +0100 @@ -20,8 +20,11 @@ import org.dive4elements.river.artifacts.D4EArtifact; import org.dive4elements.river.artifacts.model.CalculationResult; import org.dive4elements.river.artifacts.model.MiddleBedHeightData; + +import org.dive4elements.river.model.River; + +import org.dive4elements.river.utils.Formatter; import org.dive4elements.river.utils.RiverUtils; -import org.dive4elements.river.utils.Formatter; /** @@ -91,10 +94,12 @@ protected void writeCSVHeader(CSVWriter writer) { + River river = RiverUtils.getRiver((D4EArtifact) master); + String riverUnit = river.getWstUnit().getName(); writer.writeNext(new String[] { msg(CSV_KM, CSV_KM), msg(CSV_SOUNDING, CSV_SOUNDING), - msg(CSV_HEIGHT, CSV_HEIGHT), + msg(CSV_HEIGHT, CSV_HEIGHT, new Object[] {riverUnit}), msg(CSV_UNCERTAINTY, CSV_UNCERTAINTY), msg(CSV_DATA_GAP, CSV_DATA_GAP), msg(CSV_SOUNDING_WIDTH, CSV_SOUNDING_WIDTH),