Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 8141:37cdfad302cb
Metadata in datacage tooltips for sediment densities, bed heights, flow velocities and sounding widhts.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 26 Aug 2014 12:09:18 +0200 |
parents | aca5d1c87755 |
children | d4e4dde1d5cb |
comparison
equal
deleted
inserted
replaced
8140:369fbb28f5d0 | 8141:37cdfad302cb |
---|---|
1383 <densities> | 1383 <densities> |
1384 <dc:context> | 1384 <dc:context> |
1385 <dc:statement> | 1385 <dc:statement> |
1386 SELECT DISTINCT | 1386 SELECT DISTINCT |
1387 sd.id AS sdid, | 1387 sd.id AS sdid, |
1388 sd.description AS description, | |
1389 d.lower AS depth_lower, | 1388 d.lower AS depth_lower, |
1390 d.upper AS depth_upper, | 1389 d.upper AS depth_upper, |
1391 min(sdv.year) AS year | 1390 min(sdv.year) AS year, |
1391 sd.description || '<BR>Jahr: ' || min(sdv.year) AS info | |
1392 FROM sediment_density sd | 1392 FROM sediment_density sd |
1393 JOIN depths d ON sd.depth_id = d.id | 1393 JOIN depths d ON sd.depth_id = d.id |
1394 JOIN sediment_density_values sdv on sdv.sediment_density_id = sd.id | 1394 JOIN sediment_density_values sdv on sdv.sediment_density_id = sd.id |
1395 WHERE sd.river_id = ${river_id} | 1395 WHERE sd.river_id = ${river_id} |
1396 GROUP BY sd.id, sd.description, d.upper, d.lower | 1396 GROUP BY sd.id, sd.description, d.upper, d.lower |
1399 <dc:if test="dc:has-result()"> | 1399 <dc:if test="dc:has-result()"> |
1400 <dc:for-each> | 1400 <dc:for-each> |
1401 <density description="{$depth_lower}-{$depth_upper} cm" | 1401 <density description="{$depth_lower}-{$depth_upper} cm" |
1402 factory="sedimentdensity" | 1402 factory="sedimentdensity" |
1403 target_out="{$out}" | 1403 target_out="{$out}" |
1404 info="{$description}" | 1404 info="{$info}" |
1405 ids="{$sdid}" /> | 1405 ids="{$sdid}" /> |
1406 </dc:for-each> | 1406 </dc:for-each> |
1407 </dc:if> | 1407 </dc:if> |
1408 </dc:context> | 1408 </dc:context> |
1409 </densities> | 1409 </densities> |
1895 </dc:otherwise> | 1895 </dc:otherwise> |
1896 </dc:choose> | 1896 </dc:choose> |
1897 <dc:macro-body/> | 1897 <dc:macro-body/> |
1898 </dc:macro> | 1898 </dc:macro> |
1899 | 1899 |
1900 <dc:macro name="bed-heights-statement"> | |
1901 <dc:statement> | |
1902 SELECT bhs.id AS bedh_id, | |
1903 bhs.year AS bedh_year, | |
1904 bhs.description AS bedh_descr, | |
1905 bhs.description || '<BR>Jahr: ' || bhs.year || | |
1906 '<BR>Aufnahmeart: ' || bht.name || | |
1907 '<BR>Lagesystem: ' || ls.name || | |
1908 '<BR>Höhensystem: ' || cur_em.name || | |
1909 '<BR>ursprüngliches Höhensystem: ' || old_em.name || | |
1910 '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) || | |
1911 '<BR>Auswerter: ' || bhs.evaluation_by AS info | |
1912 FROM bed_height_single bhs | |
1913 JOIN bed_height_type bht ON bht.id = bhs.type_id | |
1914 JOIN location_system ls ON ls.id = location_system_id | |
1915 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id | |
1916 JOIN elevation_model old_em ON old_em.id = old_elevation_model_id | |
1917 JOIN ranges r ON r.id = range_id | |
1918 WHERE bhs.river_id = ${river_id} | |
1919 AND bhs.year BETWEEN ${year_from} AND ${year_to} | |
1920 </dc:statement> | |
1921 </dc:macro> | |
1922 | |
1923 <dc:macro name="bed-heights-factory"> | |
1924 <dc:for-each> | |
1925 <height factory="bedheight" | |
1926 target_out="{$out}" | |
1927 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | |
1928 info="{$info}" | |
1929 description="{$bedh_descr}"/> | |
1930 </dc:for-each> | |
1931 </dc:macro> | |
1932 | |
1900 <dc:macro name="bed-heights-single"> | 1933 <dc:macro name="bed-heights-single"> |
1901 <single> | 1934 <single> |
1902 <dc:context> | 1935 <dc:context> |
1903 <dc:statement> | 1936 <dc:call-macro name="bed-heights-statement"/> |
1904 SELECT bhs.id AS bedh_id, | 1937 <dc:filter expr="not(contains($bedh_descr, 'Epoche'))"> |
1905 bhs.year AS bedh_year, | 1938 <dc:if test="dc:has-result()"> |
1906 bhs.description AS bedh_descr, | 1939 <dc:group expr="$bedh_year"> |
1907 bht.name AS type_name | 1940 <cross-sections name="{dc:group-key()}"> |
1908 FROM bed_height_single bhs | 1941 <dc:call-macro name="bed-heights-factory"/> |
1909 JOIN bed_height_type bht ON bht.id = bhs.type_id | 1942 </cross-sections> |
1910 WHERE bhs.river_id = ${river_id} | 1943 </dc:group> |
1911 AND lower(bhs.description) NOT LIKE '%epoch%' | 1944 </dc:if> |
1912 AND bhs.year BETWEEN ${year_from} AND ${year_to} | 1945 </dc:filter> |
1913 </dc:statement> | |
1914 <dc:if test="dc:has-result()"> | |
1915 <dc:group expr="$bedh_year"> | |
1916 <cross-sections name="{dc:group-key()}"> | |
1917 <dc:for-each> | |
1918 <height factory="bedheight" | |
1919 target_out="{$out}" | |
1920 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | |
1921 info="{$type_name}" | |
1922 description="{$bedh_descr}"/> | |
1923 </dc:for-each> | |
1924 </cross-sections> | |
1925 </dc:group> | |
1926 </dc:if> | |
1927 </dc:context> | 1946 </dc:context> |
1928 </single> | 1947 </single> |
1929 </dc:macro> | 1948 </dc:macro> |
1930 | 1949 |
1931 <dc:macro name="bed-heights-epoch"> | 1950 <dc:macro name="bed-heights-epoch"> |
1932 <epoch> | 1951 <epoch> |
1933 <dc:context> | 1952 <dc:context> |
1934 <dc:statement> | 1953 <dc:call-macro name="bed-heights-statement"/> |
1935 SELECT id AS bedh_id, | 1954 <dc:filter expr="contains($bedh_descr, 'Epoche')"> |
1936 year AS bedh_year, | 1955 <dc:call-macro name="bed-heights-factory"/> |
1937 description AS bedh_descr | 1956 </dc:filter> |
1938 FROM bed_height_single | |
1939 WHERE river_id = ${river_id} | |
1940 AND lower(description) LIKE '%epoch%' | |
1941 AND year BETWEEN ${year_from} AND ${year_to} | |
1942 </dc:statement> | |
1943 <dc:for-each> | |
1944 <height factory="bedheight" target_out="{$out}" | |
1945 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | |
1946 description="{$bedh_descr}"/> | |
1947 </dc:for-each> | |
1948 </dc:context> | 1957 </dc:context> |
1949 </epoch> | 1958 </epoch> |
1950 </dc:macro> | 1959 </dc:macro> |
1951 | 1960 |
1952 <dc:macro name="flow_velocity_models"> | 1961 <dc:macro name="flow_velocity_models"> |
1953 <dc:context> | 1962 <dc:context> |
1954 <dc:statement> | 1963 <dc:statement> |
1955 SELECT fvm.id AS fvmid, | 1964 SELECT fvm.id AS fvmid, |
1956 fvm.description AS fvmd, | 1965 fvm.description AS fvmd, |
1966 dz.gauge_name AS gauge, | |
1967 dz.value AS q, | |
1957 dz.upper_discharge AS upperQ, | 1968 dz.upper_discharge AS upperQ, |
1958 dz.lower_discharge AS lowerQ | 1969 dz.lower_discharge AS lowerQ |
1959 FROM flow_velocity_model fvm | 1970 FROM flow_velocity_model fvm |
1960 JOIN discharge_zone dz ON dz.id = fvm.discharge_zone_id | 1971 JOIN discharge_zone dz ON dz.id = fvm.discharge_zone_id |
1961 WHERE dz.river_id = ${river_id} | 1972 WHERE dz.river_id = ${river_id} |
1965 <flowvelocitymodel> | 1976 <flowvelocitymodel> |
1966 <dc:for-each> | 1977 <dc:for-each> |
1967 <measurement_value name="{$fvmd}" | 1978 <measurement_value name="{$fvmd}" |
1968 ids="{$fvmid}" | 1979 ids="{$fvmid}" |
1969 factory="flowvelocitymodel" | 1980 factory="flowvelocitymodel" |
1970 info="{$lowerQ} - {$upperQ}" | 1981 info="{$lowerQ} - {$upperQ}<BR> |
1982 Pegel {$gauge}<BR> | |
1983 Q = {$q} m3/s" | |
1971 target_out="{$out}" /> | 1984 target_out="{$out}" /> |
1972 </dc:for-each> | 1985 </dc:for-each> |
1973 </flowvelocitymodel> | 1986 </flowvelocitymodel> |
1974 </dc:if> | 1987 </dc:if> |
1975 </dc:context> | 1988 </dc:context> |
2036 </dc:context> | 2049 </dc:context> |
2037 </dc:macro> | 2050 </dc:macro> |
2038 | 2051 |
2039 <dc:macro name="sounding-width"> | 2052 <dc:macro name="sounding-width"> |
2040 <dc:context> | 2053 <dc:context> |
2041 <dc:statement> | 2054 <dc:call-macro name="bed-heights-statement"/> |
2042 SELECT id AS bedh_id, | |
2043 year AS bedh_year, | |
2044 description AS bedh_descr | |
2045 FROM bed_height_single WHERE river_id = ${river_id} | |
2046 </dc:statement> | |
2047 <dc:if test="dc:has-result()"> | 2055 <dc:if test="dc:has-result()"> |
2048 <soundings_width> | 2056 <soundings_width> |
2049 <dc:for-each> | 2057 <dc:for-each> |
2050 <height factory="bedheight" | 2058 <height factory="bedheight" |
2051 target_out="{$out}" | 2059 target_out="{$out}" |
2052 ids="bedheight-soundings-{$bedh_id}-{$bedh_year}" | 2060 ids="bedheight-soundings-{$bedh_id}-{$bedh_year}" |
2061 info="{$info}" | |
2053 description="{$bedh_descr}"/> | 2062 description="{$bedh_descr}"/> |
2054 </dc:for-each> | 2063 </dc:for-each> |
2055 </soundings_width> | 2064 </soundings_width> |
2056 </dc:if> | 2065 </dc:if> |
2057 </dc:context> | 2066 </dc:context> |