comparison artifacts/doc/conf/meta-data.xml @ 9103:e68d4a10c308

Umsortierung in Datenkorb bzgl. min/max Sohlhöhen
author gernotbelger
date Tue, 29 May 2018 11:02:56 +0200
parents 7e60457f9d26
children ee77e544e890
comparison
equal deleted inserted replaced
9102:21e65960a9e3 9103:e68d4a10c308
259 <dc:call-macro name="flood-map-complete"/> 259 <dc:call-macro name="flood-map-complete"/>
260 </dc:when> 260 </dc:when>
261 261
262 <dc:comment> S-INFO </dc:comment> 262 <dc:comment> S-INFO </dc:comment>
263 <dc:when test="$out = 'sinfo_flowdepth_minfo_heights'"> 263 <dc:when test="$out = 'sinfo_flowdepth_minfo_heights'">
264 <dc:variable name="bed_height_type" expr="''"/> 264 <dc:call-macro name="bed-heights-single-MW"/>
265 <dc:variable name="bed_height_descr_prefix" expr="''"/>
266 <dc:variable name="bedheight_count" expr="'bedh_height_count'"/>
267 <dc:call-macro name="bed-heights-single"/>
268 </dc:when> 265 </dc:when>
269 <dc:when test="$out = 'sinfo_flowdepthminmax_heights'"> 266 <dc:when test="$out = 'sinfo_flowdepthminmax_heights'">
270 <!-- Selects bedheights that have min/max bedheights. According to BfG, it is safe to only assume min is present --> 267 <dc:call-macro name="bed-heights-single-KL_TW"/>
271 <dc:variable name="bed_height_type" expr="''"/>
272 <dc:variable name="bed_height_descr_prefix" expr="''"/>
273 <dc:variable name="bedheight_count" expr="'bedh_min_count'"/>
274 <dc:call-macro name="bed-heights-single"/>
275 </dc:when> 268 </dc:when>
276 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'"> 269 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'">
277 <minfo> 270 <minfo>
278 <fixanalysis> 271 <fixanalysis>
279 <dc:call-macro name="basedata_7_waterlevels"/> 272 <dc:call-macro name="basedata_7_waterlevels"/>
1618 1611
1619 <sinfo> 1612 <sinfo>
1620 <sinfo_predefined_flowdepths> 1613 <sinfo_predefined_flowdepths>
1621 <dc:call-macro name="sinfo_predefined_flowdepth-m"/> 1614 <dc:call-macro name="sinfo_predefined_flowdepth-m"/>
1622 </sinfo_predefined_flowdepths> 1615 </sinfo_predefined_flowdepths>
1623
1624 <!-- Auf Wunsch BfG herausgenommen; erscheinen ebenfalls unter 'zusätzliche Längsschnitte'
1625 <sinfo_additional_ls>
1626 <dc:call-macro name="basedata_1_additionals-sinfo-with-q"/>
1627 <dc:call-macro name="basedata_1_additionals-sinfo-without-q"/>
1628 </sinfo_additional_ls>
1629 -->
1630
1631 <!-- TODO: soll nach MINFO -->
1632 <bed_heights_minmax>
1633 <dc:call-macro name="minfo-heights-max"/>
1634 <dc:call-macro name="minfo-heights-min"/>
1635 </bed_heights_minmax>
1636 1616
1637 <sinfo_predefined_tkh> 1617 <sinfo_predefined_tkh>
1638 <dc:call-macro name="sinfo_predefined_tkh-berechnung"/> 1618 <dc:call-macro name="sinfo_predefined_tkh-berechnung"/>
1639 <dc:call-macro name="sinfo_predefined_tkh-messung"/> 1619 <dc:call-macro name="sinfo_predefined_tkh-messung"/>
1640 </sinfo_predefined_tkh> 1620 </sinfo_predefined_tkh>
2003 </dc:group> 1983 </dc:group>
2004 </dc:macro> 1984 </dc:macro>
2005 1985
2006 <dc:macro name="minfo-heights"> 1986 <dc:macro name="minfo-heights">
2007 <bedheights> 1987 <bedheights>
2008 <dc:variable name="bed_height_type" expr="''">
2009 <!-- REMARK: empty type for the former, 'normal' bed height -->
2010 </dc:variable>
2011 <dc:variable name="bed_height_descr_prefix" expr="''"/>
2012 <dc:variable name="bedheight_count" expr="'bedh_height_count'"/>
2013 <dc:call-macro name="bed-heights-single"/> 1988 <dc:call-macro name="bed-heights-single"/>
2014 <dc:call-macro name="bed-heights-epoch"/> 1989 <dc:call-macro name="bed-heights-epoch"/>
2015 </bedheights> 1990 </bedheights>
2016 </dc:macro> 1991 </dc:macro>
2017 1992
2018 <dc:macro name="minfo-heights-max"> 1993 <!-- Show all three MW, TL, and KL bedheights -->
2019 <bedheights_max> 1994 <dc:macro name="bed-heights-factory_MW_TW_KL">
2020 <dc:variable name="bed_height_type" expr="'Max'"/>
2021 <dc:variable name="bed_height_descr_prefix" expr="'KL-'"/>
2022 <dc:variable name="bedheight_count" expr="'bedh_max_count'"/>
2023 <dc:call-macro name="bed-heights-single"/>
2024 <dc:call-macro name="bed-heights-epoch"/>
2025 </bedheights_max>
2026 </dc:macro>
2027
2028 <dc:macro name="minfo-heights-min">
2029 <bedheights_min>
2030 <dc:variable name="bed_height_type" expr="'Min'"/>
2031 <dc:variable name="bed_height_descr_prefix" expr="'TW-'"/>
2032 <dc:variable name="bedheight_count" expr="'bedh_min_count'"/>
2033 <dc:call-macro name="bed-heights-single"/>
2034 <dc:call-macro name="bed-heights-epoch"/>
2035 </bedheights_min>
2036 </dc:macro>
2037
2038 <dc:macro name="bed-heights-factory">
2039 <dc:for-each> 1995 <dc:for-each>
2040 <height factory="bedheight" target_out="{$out}" ids="bedheight-single{$bed_height_type}-{$bedh_id}-{$bedh_year}-{$bed_height_descr_prefix}{$bedh_descr}" info="{$info}" description="{$bed_height_descr_prefix}{$bedh_descr}"/> 1996 <dc:if test="$bedh_height_count > 0">
1997 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-MW-{$bedh_descr}" info="{$info}" description="MW-{$bedh_descr}"/>
1998 </dc:if>
1999 <dc:if test="$bedh_min_count > 0">
2000 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMin-{$bedh_id}-{$bedh_year}-TW-{$bedh_descr}" info="{$info}" description="TW-{$bedh_descr}"/>
2001 </dc:if>
2002 <dc:if test="$bedh_max_count > 0">
2003 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMax-{$bedh_id}-{$bedh_year}-KL-{$bedh_descr}" info="{$info}" description="KL-{$bedh_descr}"/>
2004 </dc:if>
2005 </dc:for-each>
2006 </dc:macro>
2007
2008 <!-- Show only MW bed height and name it in a neutral way -->
2009 <dc:macro name="bed-heights-factory_MW">
2010 <dc:for-each>
2011 <dc:if test="$bedh_height_count > 0">
2012 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-{$bedh_descr}" info="{$info}" description="{$bedh_descr}"/>
2013 </dc:if>
2041 </dc:for-each> 2014 </dc:for-each>
2042 </dc:macro> 2015 </dc:macro>
2043 2016
2044 <dc:macro name="bed-heights-single"> 2017 <dc:macro name="bed-heights-single">
2045 <single> 2018 <single>
2046 <dc:context> 2019 <dc:context>
2047 <dc:call-macro name="bed-heights-statement"/> 2020 <dc:call-macro name="bed-heights-statement"/>
2048 <!--dc:filter expr="not(contains($bedh_descr, 'Epoche'))"--> 2021 <dc:if test="dc:has-result()">
2049 <dc:filter expr="dc:column($bedheight_count) > 0"> 2022 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2023 <heights name="{dc:group-key()}">
2024 <dc:call-macro name="bed-heights-factory_MW_TW_KL"/>
2025 </heights>
2026 </dc:group>
2027 </dc:if>
2028 </dc:context>
2029 </single>
2030 </dc:macro>
2031
2032 <!-- Show bed heights that have MW values with a neutral name -->
2033 <dc:macro name="bed-heights-single-MW">
2034 <single>
2035 <dc:context>
2036 <dc:call-macro name="bed-heights-statement"/>
2037 <dc:filter expr="$bedh_height_count">
2050 <dc:if test="dc:has-result()"> 2038 <dc:if test="dc:has-result()">
2051 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> 2039 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2052 <heights name="{dc:group-key()}"> 2040 <heights name="{dc:group-key()}">
2053 <dc:call-macro name="bed-heights-factory"/> 2041 <dc:call-macro name="bed-heights-factory_MW"/>
2054 </heights> 2042 </heights>
2055 </dc:group> 2043 </dc:group>
2056 </dc:if> 2044 </dc:if>
2057 </dc:filter> 2045 </dc:filter>
2058 <!--/dc:filter--> 2046 </dc:context>
2047 </single>
2048 </dc:macro>
2049
2050 <!-- Show bed heights that have KL and TW values with a neutral name -->
2051 <dc:macro name="bed-heights-single-KL_TW">
2052 <single>
2053 <dc:context>
2054 <dc:call-macro name="bed-heights-statement"/>
2055 <dc:filter expr="$bedh_max_count > 0 and $bedh_min_count > 0">
2056 <dc:if test="dc:has-result()">
2057 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2058 <heights name="{dc:group-key()}">
2059 <dc:call-macro name="bed-heights-factory_MW"/>
2060 </heights>
2061 </dc:group>
2062 </dc:if>
2063 </dc:filter>
2059 </dc:context> 2064 </dc:context>
2060 </single> 2065 </single>
2061 </dc:macro> 2066 </dc:macro>
2062 2067
2063 <dc:macro name="bed-heights-epoch"> 2068 <dc:macro name="bed-heights-epoch">
2064 <epoch> 2069 <epoch>
2065 <dc:context> 2070 <dc:context>
2066 <dc:call-macro name="bed-heights-statement"/> 2071 <dc:call-macro name="bed-heights-statement"/>
2067 <dc:filter expr="contains($bedh_descr, 'Epoche')"> 2072 <dc:filter expr="contains($bedh_descr, 'Epoche')">
2068 <dc:filter expr="dc:column($bedheight_count) > 0"> 2073 <dc:call-macro name="bed-heights-factory_MW_TW_KL"/>
2069 <dc:call-macro name="bed-heights-factory"/>
2070 </dc:filter>
2071 </dc:filter> 2074 </dc:filter>
2072 </dc:context> 2075 </dc:context>
2073 </epoch> 2076 </epoch>
2074 </dc:macro> 2077 </dc:macro>
2075 2078
2110 '&lt;BR&gt;Höhensystem: ' || cur_em.name || 2113 '&lt;BR&gt;Höhensystem: ' || cur_em.name ||
2111 '&lt;BR&gt;ursprüngliches Höhensystem: ' || old_em.name || 2114 '&lt;BR&gt;ursprüngliches Höhensystem: ' || old_em.name ||
2112 '&lt;BR&gt;Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) || 2115 '&lt;BR&gt;Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) ||
2113 '&lt;BR&gt;Auswerter: ' || bhs.evaluation_by AS info, 2116 '&lt;BR&gt;Auswerter: ' || bhs.evaluation_by AS info,
2114 bhv.height_count AS bedh_height_count, 2117 bhv.height_count AS bedh_height_count,
2115 bhv.min_count AS 2118 bhv.min_count AS bedh_min_count,
2116 bedh_min_count,
2117 bhv.max_count AS bedh_max_count 2119 bhv.max_count AS bedh_max_count
2118 FROM bed_height bhs 2120 FROM bed_height bhs
2119 JOIN bed_height_type bht ON bht.id = bhs.type_id 2121 JOIN bed_height_type bht ON bht.id = bhs.type_id
2120 JOIN location_system ls ON ls.id = location_system_id 2122 JOIN location_system ls ON ls.id = location_system_id
2121 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id 2123 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id

http://dive4elements.wald.intevation.org