Mercurial > dive4elements > river
changeset 4929:1366277655b9
Bedheights: Write sounding name and set max fraction digits in calculation output.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 31 Jan 2013 11:43:28 +0100 |
parents | 57652f905a87 |
children | ce7d8e2a7e02 840250040a7d |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightExporter.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightExporter.java Thu Jan 31 11:22:43 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightExporter.java Thu Jan 31 11:43:28 2013 +0100 @@ -115,6 +115,8 @@ NumberFormat soundF = Formatter.getMiddleBedHeightSounding(context); NumberFormat widthF = Formatter.getMiddleBedHeightWidth(context); + heightF.setMaximumFractionDigits(1); + soundF.setMaximumFractionDigits(1); for (MiddleBedHeightData data: mData) { for (int i = 0, n = data.size(); i < n; i++) { int start = data.getStartYear(); @@ -123,7 +125,7 @@ if (start == end) { writer.writeNext(new String[] { kmF.format(data.getKM(i)), - data.getSoundingName(context), + data.getDescription(), heightF.format(data.getMiddleHeight(i)), uncertF.format(data.getUncertainty(i)), gapF.format(data.getDataGap(i)) + "%", @@ -135,7 +137,7 @@ else { writer.writeNext(new String[] { kmF.format(data.getKM(i)), - data.getSoundingName(context), + data.getDescription(), heightF.format(data.getMiddleHeight(i)), "", "",