Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 5884:11e74ca3229a
datacage: simplified range filtering for wsts.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 30 Apr 2013 17:46:29 +0200 |
parents | 1afeb674381d |
children | 178a873df7a9 |
comparison
equal
deleted
inserted
replaced
5883:4f35b34f4efa | 5884:11e74ca3229a |
---|---|
10 wst_columns.name AS prot_column_name, | 10 wst_columns.name AS prot_column_name, |
11 wst_columns.position AS prot_rel_pos, | 11 wst_columns.position AS prot_rel_pos, |
12 wst_columns.description AS info, | 12 wst_columns.description AS info, |
13 wst_ranges.a AS deffrom, | 13 wst_ranges.a AS deffrom, |
14 wst_ranges.b AS defto | 14 wst_ranges.b AS defto |
15 FROM wst_columns, wst_ranges | 15 FROM wst_columns JOIN wst_ranges |
16 ON wst_columns.id = wst_ranges.wst_column_id | |
16 WHERE wst_columns.wst_id = ${prot_id} | 17 WHERE wst_columns.wst_id = ${prot_id} |
17 AND wst_ranges.wst_column_id = wst_columns.id | 18 AND NOT((${tokm} < wst_ranges.a) OR (${fromkm} > wst_ranges.b)) |
18 AND (${fromkm} BETWEEN wst_ranges.a AND wst_ranges.b | |
19 OR ${tokm} BETWEEN wst_ranges.a AND wst_ranges.b | |
20 OR wst_ranges.a BETWEEN ${fromkm} AND ${tokm} | |
21 OR wst_ranges.b BETWEEN ${fromkm} AND ${tokm}) | |
22 ORDER by wst_columns.position | 19 ORDER by wst_columns.position |
23 </dc:statement> | 20 </dc:statement> |
24 </dc:macro> | 21 </dc:macro> |
25 | 22 |
26 <dc:comment> | 23 <dc:comment> |