Mercurial > dive4elements > river
changeset 2722:36631f23acdf
Allow loading of previous reference curves.
flys-artifacts/trunk@4453 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 21 May 2012 12:21:35 +0000 |
parents | f1c639493941 |
children | 5ce5abd173b9 |
files | flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml |
diffstat | 2 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon May 21 12:09:02 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon May 21 12:21:35 2012 +0000 @@ -1,3 +1,7 @@ +2012-05-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * doc/conf/meta-data.xml: Allow loading of prev. reference curves. + 2012-05-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/conf/meta-data.xml: (yet unused) sceleton for ref-curve dc conf.
--- a/flys-artifacts/doc/conf/meta-data.xml Mon May 21 12:09:02 2012 +0000 +++ b/flys-artifacts/doc/conf/meta-data.xml Mon May 21 12:21:35 2012 +0000 @@ -1014,6 +1014,48 @@ </differences> </dc:if> + <dc:comment> + SHOW REFERENCE CURVE + </dc:comment> + + <dc:if test="dc:contains($artifact-outs, 'reference_curve')"> + <reference_curves> + <dc:elements> + <dc:context> + <dc:statement> + SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation + FROM master_artifacts m + WHERE m.collection_id = ${collection_id} AND m.gid <> CAST(${artifact-id} AS uuid) + AND EXISTS ( + SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river}) + </dc:statement> + <dc:elements> + <dc:context> + <dc:statement> + SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description + FROM outs as o, facets as f, artifacts as a + WHERE f.name = 'reference_curve' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} + </dc:statement> + <dc:elements> + <dc:element name="${facet_name}"> + <dc:attribute name="description" value="${facet_description}"/> + <dc:attribute name="factory" value="winfo"/> + <dc:attribute name="artifact-id" value="${aid}"/> + <dc:attribute name="ids" value="${aid}"/> + <dc:attribute name="out" value="reference_curve"/> + </dc:element> + </dc:elements> + </dc:context> + </dc:elements> + </dc:context> + </dc:elements> + </reference_curves> + </dc:if> + + <dc:comment> + SHOW COMPUTED DISCHARGE CURVES + </dc:comment> + <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> <computed_discharge_curves> <dc:elements>