# HG changeset patch # User Raimund Renkert # Date 1359629008 -3600 # Node ID 1366277655b9aabdf654d394e12004f1bbe3683f # Parent 57652f905a874e023d82132c6f38b4fc97f46fa8 Bedheights: Write sounding name and set max fraction digits in calculation output. diff -r 57652f905a87 -r 1366277655b9 flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightExporter.java --- 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)), "", "",