Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 4379:8c7e76521904
Add datacage logic for MINFO bed differences
The datacage will display already calculated fixanalysis data for longitudinal
section curves.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 02 Nov 2012 15:52:45 +0100 |
parents | f54223644814 |
children | 0b4926d93029 |
comparison
equal
deleted
inserted
replaced
4378:8eb1d6dc96a9 | 4379:8c7e76521904 |
---|---|
1937 </dc:context> | 1937 </dc:context> |
1938 </dc:elements> | 1938 </dc:elements> |
1939 </floodmap> | 1939 </floodmap> |
1940 </dc:if> | 1940 </dc:if> |
1941 | 1941 |
1942 <dc:comment> | |
1943 MINFO bedheight difference | |
1944 </dc:comment> | |
1945 | |
1946 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or dc:contains($artifact-outs, 'bed_difference_height_year')"> | |
1947 <fix_longitudinal_section_curve> | |
1948 <dc:elements> | |
1949 <dc:context> | |
1950 <dc:statement> | |
1951 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation | |
1952 FROM master_artifacts m | |
1953 WHERE m.collection_id = ${collection_id} AND m.gid <> CAST(${artifact-id} AS uuid) | |
1954 AND EXISTS ( | |
1955 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river}) | |
1956 </dc:statement> | |
1957 <dc:elements> | |
1958 <dc:context> | |
1959 <dc:statement> | |
1960 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description | |
1961 FROM outs as o, facets as f, artifacts as a | |
1962 WHERE (f.name = 'fix_sector_average_ls_0' or f.name = 'fix_sector_average_ls_1' or f.name = 'fix_sector_average_ls_2' | |
1963 or f.name = 'fix_sector_average_ls_3' or f.name = 'fix_analysis_events_ls' or f.name = 'fix_reference_events_ls') | |
1964 and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id} | |
1965 </dc:statement> | |
1966 <fix_longitudinal_section_curve> | |
1967 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/> | |
1968 <dc:elements> | |
1969 <dc:element name="${facet_name}"> | |
1970 <dc:attribute name="description" value="${facet_description}"/> | |
1971 <dc:attribute name="factory" value="fixanalysis"/> | |
1972 <dc:attribute name="artifact-id" value="${aid}"/> | |
1973 <dc:attribute name="ids" value="${facet_num}"/> | |
1974 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> | |
1975 </dc:element> | |
1976 </dc:elements> | |
1977 </fix_longitudinal_section_curve> | |
1978 </dc:context> | |
1979 </dc:elements> | |
1980 </dc:context> | |
1981 </dc:elements> | |
1982 </fix_longitudinal_section_curve> | |
1983 </dc:if> | |
1984 | |
1942 </dc:context> | 1985 </dc:context> |
1943 </old_calculations> | 1986 </old_calculations> |
1944 | 1987 |
1945 | 1988 |
1946 <dc:comment> | 1989 <dc:comment> |