Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 8412:17db08570637
SCHEMA CHANGE: removed superfluous columns station and river_id from measurement_stations and adapted other components accordingly.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 19:20:26 +0200 |
parents | 1e1b08d033f4 |
children | 6399ebc6fce9 |
comparison
equal
deleted
inserted
replaced
8411:b8c6cb36607e | 8412:17db08570637 |
---|---|
1678 JOIN sediment_load_kinds slk ON slk.id = sl.kind | 1678 JOIN sediment_load_kinds slk ON slk.id = sl.kind |
1679 JOIN sediment_load_values slv | 1679 JOIN sediment_load_values slv |
1680 ON sl.id = slv.sediment_load_id | 1680 ON sl.id = slv.sediment_load_id |
1681 JOIN measurement_station ms | 1681 JOIN measurement_station ms |
1682 ON ms.id = slv.measurement_station_id | 1682 ON ms.id = slv.measurement_station_id |
1683 JOIN rivers r ON ms.river_id = r.id | 1683 JOIN ranges ra ON ms.range_id = ra.id |
1684 JOIN rivers r ON ra.river_id = r.id | |
1684 JOIN time_intervals ti ON sl.time_interval_id = ti.id | 1685 JOIN time_intervals ti ON sl.time_interval_id = ti.id |
1685 LEFT JOIN time_intervals sq ON sl.sq_time_interval_id = sq.id | 1686 LEFT JOIN time_intervals sq ON sl.sq_time_interval_id = sq.id |
1686 JOIN grain_fraction gf ON gf.id = sl.grain_fraction_id | 1687 JOIN grain_fraction gf ON gf.id = sl.grain_fraction_id |
1687 WHERE r.id = ${river_id} | 1688 WHERE r.id = ${river_id} |
1688 AND ms.station BETWEEN ${fromkm} AND ${tokm} | 1689 AND CASE WHEN r.km_up = 1 AND ra.b IS NOT NULL |
1690 THEN ra.b ELSE ra.a END BETWEEN ${fromkm} AND ${tokm} | |
1689 ORDER BY sqstart DESC, sqstop DESC, | 1691 ORDER BY sqstart DESC, sqstop DESC, |
1690 fraction, startyear DESC, endyear DESC | 1692 fraction, startyear DESC, endyear DESC |
1691 </dc:statement> | 1693 </dc:statement> |
1692 <dc:call-macro name="sedimentloads-filter"> | 1694 <dc:call-macro name="sedimentloads-filter"> |
1693 <dc:call-macro name="loads"> | 1695 <dc:call-macro name="loads"> |
3068 JOIN sediment_load_kinds slk ON slk.id = sl.kind | 3070 JOIN sediment_load_kinds slk ON slk.id = sl.kind |
3069 JOIN sediment_load_values slv | 3071 JOIN sediment_load_values slv |
3070 ON sl.id = slv.sediment_load_id | 3072 ON sl.id = slv.sediment_load_id |
3071 JOIN measurement_station ms | 3073 JOIN measurement_station ms |
3072 ON ms.id = slv.measurement_station_id | 3074 ON ms.id = slv.measurement_station_id |
3073 JOIN rivers r ON ms.river_id = r.id | 3075 JOIN ranges ra ON ms.range_id = ra.id |
3076 JOIN rivers r ON ra.river_id = r.id | |
3074 JOIN time_intervals ti ON sl.time_interval_id = ti.id | 3077 JOIN time_intervals ti ON sl.time_interval_id = ti.id |
3075 JOIN grain_fraction gf ON gf.id = sl.grain_fraction_id | 3078 JOIN grain_fraction gf ON gf.id = sl.grain_fraction_id |
3076 WHERE r.id = ${river_id} | 3079 WHERE r.id = ${river_id} |
3077 AND sq_time_interval_id = ${sq_time_id} | 3080 AND sq_time_interval_id = ${sq_time_id} |
3078 AND ms.station BETWEEN ${fromkm} AND ${tokm} | 3081 AND CASE WHEN r.km_up = 1 AND ra.b IS NOT NULL |
3082 THEN ra.b ELSE ra.a END BETWEEN ${fromkm} AND ${tokm} | |
3079 AND slk.kind = 'official' | 3083 AND slk.kind = 'official' |
3080 </dc:statement> | 3084 </dc:statement> |
3081 <dc:call-macro name="sedimentload_off_epoch_filter"> | 3085 <dc:call-macro name="sedimentload_off_epoch_filter"> |
3082 <dc:call-macro name="loads"> | 3086 <dc:call-macro name="loads"> |
3083 <dc:call-macro name="load"/> | 3087 <dc:call-macro name="load"/> |