Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7223:2c26a7217732
issue1435: DC layout for sediment-loads more the way its requested.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 02 Oct 2013 11:44:23 +0200 |
parents | c9e74fe2ed4d |
children | aae92f8bf6d1 |
comparison
equal
deleted
inserted
replaced
7220:7a6cb5b34bfc | 7223:2c26a7217732 |
---|---|
1266 <dc:context> | 1266 <dc:context> |
1267 <dc:statement> | 1267 <dc:statement> |
1268 SELECT DISTINCT | 1268 SELECT DISTINCT |
1269 sy.id AS syid, | 1269 sy.id AS syid, |
1270 sy.description AS description, | 1270 sy.description AS description, |
1271 ti.start_time AS year | 1271 ti.start_time AS year, |
1272 gf.name AS fraction | |
1272 FROM sediment_yield sy | 1273 FROM sediment_yield sy |
1273 JOIN rivers r ON sy.river_id = r.id | 1274 JOIN rivers r ON sy.river_id = r.id |
1274 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id | 1275 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id |
1275 JOIN time_intervals ti ON sy.time_interval_id = ti.id | 1276 JOIN time_intervals ti ON sy.time_interval_id = ti.id |
1277 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id | |
1276 WHERE r.id = ${river_id} | 1278 WHERE r.id = ${river_id} |
1277 AND ti.stop_time IS NULL | 1279 AND ti.stop_time IS NULL |
1278 AND syv.station BETWEEN ${fromkm} AND ${tokm} | 1280 AND syv.station BETWEEN ${fromkm} AND ${tokm} |
1281 ORDER BY fraction | |
1279 </dc:statement> | 1282 </dc:statement> |
1280 <dc:if test="dc:has-result()"> | 1283 <dc:if test="dc:has-result()"> |
1281 <dc:for-each> | 1284 <dc:for-each> |
1282 <year description="{$description}" | 1285 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/> |
1286 <year description="{$syear} - {$description}" | |
1283 factory="sedimentyield" | 1287 factory="sedimentyield" |
1284 target_out="{$out}" | 1288 target_out="{$out}" |
1285 info="infome" | 1289 info="{$syear}-{$fraction}" |
1286 ids="{$syid}" /> | 1290 ids="{$syid}" /> |
1287 </dc:for-each> | 1291 </dc:for-each> |
1288 </dc:if> | 1292 </dc:if> |
1289 </dc:context> | 1293 </dc:context> |
1290 </years> | 1294 </years> |