comparison artifacts/doc/conf/meta-data.xml @ 8453:1326fc65638c

Recognize the 'no-data value' of fromkm and tokm in datacage statement for discharge curves.
author Tom Gottfried <tom@intevation.de>
date Wed, 29 Oct 2014 16:02:37 +0100
parents 4fd063703487
children 2b4191f78ea6
comparison
equal deleted inserted replaced
8452:b9a8463ac636 8453:1326fc65638c
1074 dt.kind AS kind 1074 dt.kind AS kind
1075 FROM gauges g 1075 FROM gauges g
1076 JOIN discharge_tables dt ON g.id = dt.gauge_id 1076 JOIN discharge_tables dt ON g.id = dt.gauge_id
1077 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id 1077 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id
1078 WHERE g.river_id = ${river_id} 1078 WHERE g.river_id = ${river_id}
1079 AND ((g.station BETWEEN ${fromkm} AND ${tokm}) 1079 AND CASE WHEN ${fromkm} &gt; -99999 AND ${tokm} &lt; 99999
1080 OR g.official_number = ${refgauge}) 1080 THEN g.station BETWEEN ${fromkm} AND ${tokm}
1081 ELSE g.official_number = ${refgauge} END
1081 ORDER BY start_time 1082 ORDER BY start_time
1082 </dc:statement> 1083 </dc:statement>
1083 </dc:macro> 1084 </dc:macro>
1084 1085
1085 <dc:macro name="cross_sections"> 1086 <dc:macro name="cross_sections">

http://dive4elements.wald.intevation.org