[PATCH 4 of 4] (issue1754) Handle a>b in static BedHeight facets

Wald Commits scm-commit at wald.intevation.org
Mon Mar 30 19:29:40 CEST 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427736571 -7200
# Node ID cd5e0662f75c6adc3fcc2a13cd2839e6052c6289
# Parent  5f60bd7c4b4222df2155018686706ea914a4314e
(issue1754) Handle a>b in static BedHeight facets.

diff -r 5f60bd7c4b42 -r cd5e0662f75c artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightFacet.java	Mon Mar 30 19:28:41 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightFacet.java	Mon Mar 30 19:29:31 2015 +0200
@@ -60,8 +60,8 @@
             List<BedHeightValue> bedheightValues =
                 BedHeightValue.getBedHeightValues(
                     single,
-                    access.getFrom(),
-                    access.getTo());
+                    access.getFrom(true),
+                    access.getTo(true));
             double[][] values = new double[2][bedheightValues.size()];
             int i = 0;
             for (BedHeightValue bedheightValue : bedheightValues) {
diff -r 5f60bd7c4b42 -r cd5e0662f75c artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Mon Mar 30 19:28:41 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Mon Mar 30 19:29:31 2015 +0200
@@ -44,8 +44,8 @@
         List<BedHeightValue> bedheightValues =
             BedHeightValue.getBedHeightValues(
                 single,
-                access.getFrom(),
-                access.getTo());
+                access.getFrom(true),
+                access.getTo(true));
         double[][] values = new double[2][bedheightValues.size()];
         int i = 0;
         for (BedHeightValue bedheightValue : bedheightValues) {


More information about the Dive4Elements-commits mailing list