Mercurial > dive4elements > river
changeset 8249:d81c4b0d5ca7 3.1.5
Write CSV-header only once.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 09 Sep 2014 19:05:08 +0200 |
parents | 2b0ff11cef3f |
children | 2414154673e9 |
files | artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Tue Sep 09 18:41:11 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Tue Sep 09 19:05:08 2014 +0200 @@ -119,6 +119,8 @@ Collections.sort(data); + writeCSVHeader(writer); + for (MiddleBedHeightData d: data) { data2CSV(writer, d); } @@ -148,8 +150,6 @@ writeMetaData(writer, data); - writeCSVHeader(writer); - NumberFormat kmF = Formatter.getMiddleBedHeightKM(context); NumberFormat heightF = Formatter.getMiddleBedHeightHeight(context); NumberFormat uncertF = Formatter.getMiddleBedHeightUncert(context);