changeset 7396:a94b6e057daa

BedHeightProcessor: Finally display heights, not widths.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 17 Oct 2013 16:15:14 +0200
parents 5126cadaed58
children 8ba53c5b86a7
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightData.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightEpochData.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java	Thu Oct 17 15:36:13 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java	Thu Oct 17 16:15:14 2013 +0200
@@ -63,13 +63,13 @@
                 theme);
         if (data instanceof BedHeightSingleData) {
             BedHeightSingleData bData = (BedHeightSingleData)data;
-            double[] width = bData.getMorphWidths();
+            double[] heights  = bData.getHeights();
             double[] stations = bData.getStations().toNativeArray();
 
             logger.debug("doBedheightSingleOut");
 
-            for (int i = 0; i < width.length; i++) {
-                series.add(stations[i], width[i], false);
+            for (int i = 0; i < heights.length; i++) {
+                series.add(stations[i], heights[i], false);
             }
         } else if (data instanceof List<?>) {
             List<BedHeightSingleValue> bData = (List<BedHeightSingleValue>)data;
@@ -77,7 +77,7 @@
             logger.debug("doBedheightSingleValueOut");
 
             for(BedHeightSingleValue bvalue: bData) {
-                series.add(bvalue.getStation(), bvalue.getSoundingWidth());
+                series.add(bvalue.getStation(), bvalue.getHeight());
             }
         }
         else {

http://dive4elements.wald.intevation.org