[PATCH 1 of 7] SedimentLoadFactory: Fix query, added comment about correctness of

Wald Commits scm-commit at wald.intevation.org
Fri Sep 27 14:33:25 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380285342 -7200
# Node ID 73d7886fa59e96ad4276aa7c8605a6328e87bca2
# Parent  0fe00824bd96de171795de03e2a6d88c6d4d19c3
SedimentLoadFactory: Fix query, added comment about correctness of
fraction_type -> measurementstation assignment.

diff -r 0fe00824bd96 -r 73d7886fa59e artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java
--- 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;
 


More information about the Dive4elements-commits mailing list