[PATCH 2 of 2] issue1594/issue1603: Put bed_differences to correct axis
Wald Commits
scm-commit at wald.intevation.org
Wed Dec 11 11:21:10 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1386757210 -3600
# Node ID 28758f51f1b2a0585f719f3db360c7c3d299719d
# Parent 2f7a01fdb0931c5ca33e3e217c8460b34016570b
issue1594/issue1603: Put bed_differences to correct axis.
diff -r 2f7a01fdb093 -r 28758f51f1b2 artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java Wed Dec 11 10:39:11 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java Wed Dec 11 11:20:10 2013 +0100
@@ -85,8 +85,7 @@
public boolean canHandle(String facetType) {
return BED_DIFFERENCE_HEIGHT_YEAR.equals(facetType) // from BedDiffYearHeight
|| BED_DIFFERENCE_HEIGHT_YEAR_FILTERED.equals(facetType) // from BedDiffYearHeight
- || BED_DIFFERENCE_YEAR.equals(facetType) // from BedDifferencesYear
- || BED_DIFFERENCE_YEAR_FILTERED.equals(facetType); // from BedDifferencesYear
+ ;
}
diff -r 2f7a01fdb093 -r 28758f51f1b2 artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java Wed Dec 11 10:39:11 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java Wed Dec 11 11:20:10 2013 +0100
@@ -82,7 +82,11 @@
BedDiffYearResult bData = (BedDiffYearResult) data;
double[][] points;
- if (BED_DIFFERENCE_YEAR_HEIGHT1.equals(facetType)) {
+ if (BED_DIFFERENCE_YEAR.equals(facetType)
+ || BED_DIFFERENCE_YEAR_FILTERED.equals(facetType)) {
+ points = bData.getHeightPerYearData();
+ }
+ else if (BED_DIFFERENCE_YEAR_HEIGHT1.equals(facetType)) {
points = bData.getHeights1Data();
} else {
points = bData.getHeights2Data();
@@ -107,7 +111,9 @@
BED_DIFFERENCE_YEAR_HEIGHT1.equals(facetType)
|| BED_DIFFERENCE_YEAR_HEIGHT2.equals(facetType)
|| BED_DIFFERENCE_YEAR_HEIGHT1_FILTERED.equals(facetType)
- || BED_DIFFERENCE_YEAR_HEIGHT2_FILTERED.equals(facetType);
+ || BED_DIFFERENCE_YEAR_HEIGHT2_FILTERED.equals(facetType)
+ || BED_DIFFERENCE_YEAR.equals(facetType) // from BedDifferencesYear
+ || BED_DIFFERENCE_YEAR_FILTERED.equals(facetType); // from BedDifferencesYear
}
@Override
More information about the Dive4elements-commits
mailing list