[PATCH] little bugfix on soundings

Wald Commits scm-commit at wald.intevation.org
Thu Jun 14 17:53:07 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1528991490 -7200
# Node ID cd24db77f0446d7db936b12db2a61d343a1b5693
# Parent  910334e2eadd9aa04fc46738bb59ac9f3ea0ac11
little bugfix on soundings

diff -r 910334e2eadd -r cd24db77f044 artifacts/src/main/java/org/dive4elements/river/artifacts/common/ExportContextCSV.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/common/ExportContextCSV.java	Thu Jun 14 17:03:53 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/common/ExportContextCSV.java	Thu Jun 14 17:51:30 2018 +0200
@@ -86,27 +86,9 @@
 
     // *** CUSTOM STUFF that is used multiple times ***///
 
-    public final void writeCSVSoundingMetadata2(final BedHeightInfo sounding, final String mainLabel) {
-        // "##METADATEN PEILUNG"
-        writeCSVMetaEntry(mainLabel);
-
-        // "# Jahr der Peilung: "
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_YEAR, Integer.toString(sounding.getYear()));
-        // "# Aufnahmeart: "
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_TYPE, sounding.getType());
-        // "# Auswerter: "
-        writeCSVMetaEntry(CSV_META_HEADER_EVALUATOR, sounding.getEvaluationBy());
-        // "# Lagesystem: "
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_PRJ, sounding.getLocationSystem());
-        // "# Höhensystem: "
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_ELEVATIOIN_MODEL, sounding.getCurElevationModelUnit());
-        // "# ursprüngliches Höhensystem: "
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_ELEVATIOIN_MODEL_ORIGINAL, sounding.getOldElevationModelUnit());
-    }
-
     public final void writeCSVSoundingMetadata(final BedHeightInfo sounding) {
         // "##METADATEN PEILUNG"
-        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING);
+        writeCSVSoundingMetadata(sounding, CSV_META_HEADER_SOUNDING);
 
     }
 
@@ -219,7 +201,23 @@
         return String.format("%s [%s]", msg, unit);
     }
 
-    public void writeCSVSoundingMetadata(final BedHeightInfo currentSounding, final String csvMetaHeaderSoundingCurrent) {
+    public void writeCSVSoundingMetadata(final BedHeightInfo sounding, final String label) {
+
+        // "##METADATEN PEILUNG"
+        writeCSVMetaEntry(label);
+
+        // "# Jahr der Peilung: "
+        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_YEAR, Integer.toString(sounding.getYear()));
+        // "# Aufnahmeart: "
+        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_TYPE, sounding.getType());
+        // "# Auswerter: "
+        writeCSVMetaEntry(CSV_META_HEADER_EVALUATOR, sounding.getEvaluationBy());
+        // "# Lagesystem: "
+        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_PRJ, sounding.getLocationSystem());
+        // "# Höhensystem: "
+        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_ELEVATIOIN_MODEL, sounding.getCurElevationModelUnit());
+        // "# ursprüngliches Höhensystem: "
+        writeCSVMetaEntry(CSV_META_HEADER_SOUNDING_ELEVATIOIN_MODEL_ORIGINAL, sounding.getOldElevationModelUnit());
 
     }
 


More information about the Dive4Elements-commits mailing list