[PATCH 2 of 2] Configured SINFO-zusätzlich selektierte Längsschnitte in datacage

Wald Commits scm-commit at wald.intevation.org
Wed Mar 28 17:04:27 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1522249460 -7200
# Node ID b98fbd91f64a21d7e2adf5c0147309757e858319
# Parent  708f210ff242b514c840c3cae9ddd173ee5f5951
Configured SINFO-zusätzlich selektierte Längsschnitte in datacage

diff -r 708f210ff242 -r b98fbd91f64a artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Wed Mar 28 17:03:11 2018 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Mar 28 17:04:20 2018 +0200
@@ -274,8 +274,12 @@
                     </minfo>
                     <dc:call-macro name="basedata_3_officials"/>
                     <dc:call-macro name="basedata_2_fixations"/>
-                    <dc:call-macro name="basedata_1_additionals-sinfo-with-q"/>
-                    <dc:call-macro name="basedata_1_additionals-sinfo-without-q"/>
+                    <sinfo>
+                      <sinfo_additional_ls>
+                        <dc:call-macro name="basedata_1_additionals-sinfo-with-q"/>
+                        <dc:call-macro name="basedata_1_additionals-sinfo-without-q"/>
+                      </sinfo_additional_ls>
+                    </sinfo>
                   </dc:when>
 
                   <dc:when test="$out = 'sinfo_flow_depth'">
@@ -1299,7 +1303,7 @@
     <dc:macro name="basedata_1_additionals-sinfo-with-q_macro">
       <dc:filter expr="$kind=1 and $sinfo_selection='Q'">
         <dc:if test="dc:has-result()">
-          <additionals>
+          <sinfo_additional_ls_withQ>
             <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
               <additional name="{dc:group-key()}">
                 <dc:for-each>
@@ -1307,7 +1311,7 @@
                 </dc:for-each>
               </additional>
             </dc:group>
-          </additionals>
+          </sinfo_additional_ls_withQ>
         </dc:if>
       </dc:filter>
     </dc:macro>
@@ -1321,7 +1325,7 @@
     <dc:macro name="basedata_1_additionals-sinfo-without-q_macro">
       <dc:filter expr="$kind=1 and $sinfo_selection='W'">
         <dc:if test="dc:has-result()">
-          <additionals>
+          <sinfo_additional_ls_withoutQ>
             <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
               <additional name="{dc:group-key()}">
                 <dc:for-each>
@@ -1329,14 +1333,14 @@
                 </dc:for-each>
               </additional>
             </dc:group>
-          </additionals>
+          </sinfo_additional_ls_withoutQ>
         </dc:if>
       </dc:filter>
     </dc:macro>
 
     <dc:macro name="basedata_1_additionals-sinfo-without-q">
       <dc:call-macro name="basedata_1_additionals-sinfo-without-q_macro">
-        <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/>
+        <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/>
       </dc:call-macro>
     </dc:macro>
 
@@ -1606,6 +1610,11 @@
       </minfo>
 
       <sinfo>
+        <sinfo_additional_ls>
+          <dc:call-macro name="basedata_1_additionals-sinfo-with-q"/>
+          <dc:call-macro name="basedata_1_additionals-sinfo-without-q"/>
+        </sinfo_additional_ls>
+
         <bed_heights_minmax>
           <dc:call-macro name="minfo-heights-max"/>
           <dc:call-macro name="minfo-heights-min"/>
@@ -2073,30 +2082,31 @@
 
     <dc:macro name="bed-heights-statement">
       <dc:statement>
-         SELECT bhs.id AS bedh_id,
-         bhs.year AS bedh_year,
-         bhs.description AS bedh_descr,
-         bhs.description || '<BR>Jahr: ' || bhs.year ||
-         '<BR>Aufnahmeart: ' || bht.name ||
-         '<BR>Lagesystem: ' || ls.name ||
-         '<BR>Höhensystem: ' || cur_em.name ||
-         '<BR>ursprüngliches Höhensystem: ' || old_em.name ||
-         '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) ||
-         '<BR>Auswerter: ' || bhs.evaluation_by AS info,
-         bhv.height_count AS bedh_height_count,
-         bhv.min_count AS bedh_min_count,
-         bhv.max_count AS bedh_max_count
-         FROM bed_height bhs
-         JOIN bed_height_type bht ON bht.id = bhs.type_id
-         JOIN location_system ls ON ls.id = location_system_id
-         JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id
-         LEFT JOIN elevation_model old_em
-         ON old_em.id = old_elevation_model_id
-         LEFT JOIN ranges r ON r.id = range_id
-         LEFT JOIN (SELECT bed_height_id, COUNT(height) AS height_count, COUNT(min_height) AS min_count, COUNT(max_height) AS max_count
-           FROM bed_height_values GROUP BY bed_height_id
-         ) bhv ON bhs.id = bhv.bed_height_id
-         WHERE bhs.river_id = ${river_id}
+        SELECT bhs.id AS bedh_id,
+        bhs.year AS bedh_year,
+        bhs.description AS bedh_descr,
+        bhs.description || '<BR>Jahr: ' || bhs.year ||
+        '<BR>Aufnahmeart: ' || bht.name ||
+        '<BR>Lagesystem: ' || ls.name ||
+        '<BR>Höhensystem: ' || cur_em.name ||
+        '<BR>ursprüngliches Höhensystem: ' || old_em.name ||
+        '<BR>Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) ||
+        '<BR>Auswerter: ' || bhs.evaluation_by AS info,
+        bhv.height_count AS bedh_height_count,
+        bhv.min_count AS bedh_min_count,
+        bhv.max_count AS bedh_max_count
+        FROM bed_height bhs
+        JOIN bed_height_type bht ON bht.id = bhs.type_id
+        JOIN location_system ls ON ls.id = location_system_id
+        JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id
+        LEFT JOIN elevation_model old_em
+        ON old_em.id = old_elevation_model_id
+        LEFT JOIN ranges r ON r.id = range_id
+        LEFT JOIN (SELECT bed_height_id, COUNT(height) AS height_count, COUNT(min_height) AS min_count, COUNT(max_height) AS max_count
+        FROM bed_height_values GROUP
+        BY bed_height_id
+        ) bhv ON bhs.id = bhv.bed_height_id
+        WHERE bhs.river_id = ${river_id}
       </dc:statement>
     </dc:macro>
 
diff -r 708f210ff242 -r b98fbd91f64a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Wed Mar 28 17:03:11 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Wed Mar 28 17:04:20 2018 +0200
@@ -1479,4 +1479,10 @@
     String bedheights_max();
 
     String bedheights_min();
+
+    String sinfo_additional_ls();
+
+    String sinfo_additional_ls_withQ();
+
+    String sinfo_additional_ls_withoutQ();
 }
\ No newline at end of file
diff -r 708f210ff242 -r b98fbd91f64a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Wed Mar 28 17:03:11 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Wed Mar 28 17:04:20 2018 +0200
@@ -786,4 +786,8 @@
 
 bed_heights_minmax = Minimale/maximale Sohlh\u00f6he
 bedheights_max = Kammlage
-bedheights_min = Talweg
\ No newline at end of file
+bedheights_min = Talweg
+
+sinfo_additional_ls = Selektierte zus. L\u00e4ngsschnitte
+sinfo_additional_ls_withQ = mit Abfluss
+sinfo_additional_ls_withoutQ = ohne Abfluss
\ No newline at end of file
diff -r 708f210ff242 -r b98fbd91f64a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Wed Mar 28 17:03:11 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Wed Mar 28 17:04:20 2018 +0200
@@ -786,4 +786,8 @@
 
 bed_heights_minmax = Minimale/maximale Sohlh\u00f6he
 bedheights_max = Kammlage
-bedheights_min = Talweg
\ No newline at end of file
+bedheights_min = Talweg
+
+sinfo_additional_ls = Selektierte zus. L\u00e4ngsschnitte
+sinfo_additional_ls_withQ = mit Abfluss
+sinfo_additional_ls_withoutQ = ohne Abfluss
\ No newline at end of file


More information about the Dive4Elements-commits mailing list