changeset 8173:16be0ceee25b

Only calculated sums of fractions should be initially shown in diagram.
author Tom Gottfried <tom@intevation.de>
date Mon, 01 Sep 2014 17:50:22 +0200
parents f2bbe09e516e
children 4b2b7593815c
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadDataCalculate.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadDataCalculate.java	Mon Sep 01 12:34:39 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadDataCalculate.java	Mon Sep 01 17:50:22 2014 +0200
@@ -59,7 +59,12 @@
                     Facet    facet,
                     String   output
                 ) {
-                    return null;
+                    String name = facet.getName();
+                    if (name.endsWith("total") || name.endsWith("bed_load")
+                        || name.endsWith("bed_load_susp_sand")) {
+                        return Boolean.TRUE;
+                    }
+                    return Boolean.FALSE;
                 }
             });
     }

http://dive4elements.wald.intevation.org