changeset 7450:d4024d245f4e

meta-data.xml: Simplify query for densities a bit, sort by depth.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 28 Oct 2013 11:52:14 +0100
parents 5363047c8274
children 6b8d9c001329
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Sun Oct 27 17:30:38 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Mon Oct 28 11:52:14 2013 +0100
@@ -1254,9 +1254,9 @@
                 d.lower        AS depth_lower,
                 d.upper        AS depth_upper
             FROM     sediment_density sd
-                JOIN rivers r ON sd.river_id = r.id
                 JOIN depths d ON sd.depth_id = d.id
-            WHERE   r.id = ${river_id}
+            WHERE   sd.river_id = ${river_id}
+            ORDER BY depth_upper
         </dc:statement>
         <dc:if test="dc:has-result()">
           <dc:for-each>

http://dive4elements.wald.intevation.org