Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 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 | 97a5f16b976c |
children | 6b8d9c001329 |
comparison
equal
deleted
inserted
replaced
7449:5363047c8274 | 7450:d4024d245f4e |
---|---|
1252 sd.id AS sdid, | 1252 sd.id AS sdid, |
1253 sd.description AS description, | 1253 sd.description AS description, |
1254 d.lower AS depth_lower, | 1254 d.lower AS depth_lower, |
1255 d.upper AS depth_upper | 1255 d.upper AS depth_upper |
1256 FROM sediment_density sd | 1256 FROM sediment_density sd |
1257 JOIN rivers r ON sd.river_id = r.id | |
1258 JOIN depths d ON sd.depth_id = d.id | 1257 JOIN depths d ON sd.depth_id = d.id |
1259 WHERE r.id = ${river_id} | 1258 WHERE sd.river_id = ${river_id} |
1259 ORDER BY depth_upper | |
1260 </dc:statement> | 1260 </dc:statement> |
1261 <dc:if test="dc:has-result()"> | 1261 <dc:if test="dc:has-result()"> |
1262 <dc:for-each> | 1262 <dc:for-each> |
1263 <density description="{$depth_lower}-{$depth_upper} cm" | 1263 <density description="{$depth_lower}-{$depth_upper} cm" |
1264 factory="sedimentdensity" | 1264 factory="sedimentdensity" |