[PATCH 2 of 3] Write an empty string if year is 0 in middle bedheight exporter
Wald Commits
scm-commit at wald.intevation.org
Thu Jul 3 17:21:26 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1404400837 -7200
# Branch facet-metadata
# Node ID 60cd665b1bd6b77042797fe3266a54b7eed02018
# Parent b8d1bd49c637dfa1099d94dbe60096da575665f7
Write an empty string if year is 0 in middle bedheight exporter.
diff -r b8d1bd49c637 -r 60cd665b1bd6 artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Thu Jul 03 17:17:28 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Thu Jul 03 17:20:37 2014 +0200
@@ -207,8 +207,12 @@
private void writeMetaData(CSVWriter writer, MiddleBedHeightData data) {
writer.writeNext(new String[]{"#"});
+ String year = "";
+ if (data.getStartYear() != 0) {
+ year = String.valueOf(data.getStartYear());
+ }
writer.writeNext(new String[]{"# " + msg(CSV_META_YEAR) +
- ": " + data.getStartYear()});
+ ": " + year});
writer.writeNext(new String[]{"# " + msg(CSV_META_TYPE) +
": " + data.getType()});
writer.writeNext(new String[]{"# " + msg(CSV_META_LOC_SYSTEM) +
More information about the Dive4Elements-commits
mailing list