[PATCH 10 of 13] BedHeightProcessor: Finally display heights, not widths
Wald Commits
scm-commit at wald.intevation.org
Mon Oct 21 11:29:44 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1382019314 -7200
# Node ID a94b6e057daaa9cc975c48b35d111e92adf2b50b
# Parent 5126cadaed58cef8790c57aff65c56818b8a7a6c
BedHeightProcessor: Finally display heights, not widths.
diff -r 5126cadaed58 -r a94b6e057daa artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java
--- 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 {
More information about the Dive4elements-commits
mailing list