diff flys-aft/src/main/resources/sql/aft-common.properties @ 4774:9dcc32fc5167

Moved check for calculation range intersection to SQL statement.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 05 Jan 2013 13:46:27 +0100
parents 04377ccef10a
children d9f1202cef78
line wrap: on
line diff
--- a/flys-aft/src/main/resources/sql/aft-common.properties	Sat Jan 05 13:30:57 2013 +0100
+++ b/flys-aft/src/main/resources/sql/aft-common.properties	Sat Jan 05 13:46:27 2013 +0100
@@ -1,8 +1,8 @@
 select.gewaesser = SELECT GEWAESSER_NR, NAME FROM SL_GEWAESSER
 select.messstelle = \
-    SELECT NAME, MESSSTELLE_NR, STATIONIERUNG \
+    SELECT NAME, MESSSTELLE_NR \
     FROM MESSSTELLE \
-    WHERE GEWAESSER_NR = :GEWAESSER_NR
+    WHERE GEWAESSER_NR = :GEWAESSER_NR AND STATIONIERUNG BETWEEN :START_KM AND :END_KM
 select.abflusstafel = SELECT ABFLUSSTAFEL_NR, \
                              ABFLUSSTAFEL_BEZ, \
                              strftime('%s', GUELTIG_VON) * 1000 AS GUELTIG_VON, \

http://dive4elements.wald.intevation.org