changeset 7184:73d7886fa59e

SedimentLoadFactory: Fix query, added comment about correctness of fraction_type -> measurementstation assignment.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 27 Sep 2013 14:35:42 +0200
parents 0fe00824bd96
children 963b8bd54a63
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Fri Sep 27 12:11:54 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Fri Sep 27 14:35:42 2013 +0200
@@ -91,7 +91,7 @@
         "       sy.description AS description, " +
         "       syv.value AS load, " +
         "       syv.station AS km, " +
-        "       u.name AS unit " +
+        "       u.name AS unit, " +
         "       gf.name AS fraction " +
         "   FROM     sediment_yield sy " +
         "       JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id " +
@@ -424,7 +424,7 @@
             String fraction = (String) row[3];
 
             TreeMap<Double,MeasurementStation> relevantStations = 
-                fraction.equals("suspended_sediment")
+                fraction.equals("suspended_sediment") /* || TODO clarify: fraction.equals("susp_sand") */
                 ? suspStations
                 : floatStations;
 

http://dive4elements.wald.intevation.org