diff artifacts/doc/conf/meta-data.xml @ 9113:bfc0da2aa3aa

Where clause of the predefined datacage series extended by km range condition
author mschaefer
date Mon, 04 Jun 2018 08:50:18 +0200
parents 189cc8ededbd
children edc3958b3ed2
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Mon Jun 04 08:36:09 2018 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Mon Jun 04 08:50:18 2018 +0200
@@ -3465,6 +3465,7 @@
           INNER JOIN tkh_values v ON sc.id=v.tkh_column_id
           WHERE (s.river_id=${river_id})
           AND (lower(s.groupname)=${tkh_groupname})
+          AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001)
           GROUP BY sc.tkh_id, sc.id
           ORDER BY sc.id
         </dc:statement>
@@ -3507,6 +3508,7 @@
           FROM depth_evolution s INNER JOIN depth_evolution_values v ON s.id=v.depth_evolution_id
           WHERE (s.river_id=${river_id})
           AND (lower(s.groupname)=${depthevol_groupname})
+          AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001)
           GROUP BY s.id
           ORDER BY s.id
         </dc:statement>
@@ -3533,6 +3535,7 @@
           FROM flow_depth_column sc INNER JOIN flow_depth s ON sc.flow_depth_id=s.id
           INNER JOIN flow_depth_values v ON sc.id=v.flow_depth_column_id
           WHERE (s.river_id=${river_id})
+          AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001)
           GROUP BY sc.flow_depth_id, sc.id
           ORDER BY sc.id
         </dc:statement>

http://dive4elements.wald.intevation.org