[PATCH] Distinction by measurement station gives lots of duplicates, as we always get a whole longitudinal section

Wald Commits scm-commit at wald.intevation.org
Tue Aug 19 18:46:19 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1408466773 -7200
# Node ID 54dfdba4c4c5ea7c279986a648a7bd0a28e0e592
# Parent  786bb4f87e8dbceec61254eb35fed3f2893d9a68
Distinction by measurement station gives lots of duplicates, as we always get a whole longitudinal section.

diff -r 786bb4f87e8d -r 54dfdba4c4c5 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Fri Aug 15 18:56:02 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Tue Aug 19 18:46:13 2014 +0200
@@ -1407,22 +1407,22 @@
       </densities>
     </dc:macro>
 
-    <dc:comment> TODO aheinecke: This is a load of data. Needs grouping desperately. And te kidn in the ids;2 field </dc:comment>
+    <dc:comment> TODO aheinecke: Needs the kind in the ids;2 field </dc:comment>
     <dc:comment> TODO aheinecke: Does seperation by Id even make sense here? Is not a year filter required?</dc:comment>
     <dc:macro name="one-load">
       <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/>
-      <year description="{$station_name} - {$syear}"
+      <year description="{$syear}"
             factory="sedimentload"
             target_out="{$out}"
             info="{$description}"
             ids="{$syid};{$station_name} - {$syear}" />
     </dc:macro>
 
-    <dc:comment> TODO aheinecke: This is a load of data. Needs grouping desperately. And the kind in the name</dc:comment>
+    <dc:comment> TODO aheinecke: Needs the kind in the name</dc:comment>
     <dc:macro name="epoch-load">
       <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $startyear)"/>
       <dc:variable name="eyear" type="string" expr="dc:date-format('yyyy', $endyear)"/>
-      <year description="{$station_name} - {$syear}-{$eyear}"
+      <year description="{$syear}-{$eyear}"
             factory="sedimentload"
             target_out="{$out}"
             info="{$description}"
@@ -1478,8 +1478,7 @@
                     sy.id          AS syid,
                     sy.description AS description,
                     ti.start_time  AS year,
-                    gf.name        AS fraction,
-                    ms.name        AS station_name
+                    gf.name        AS fraction
                 FROM     sediment_load sy
                     JOIN sediment_load_values syv
                         ON sy.id = syv.sediment_load_id
@@ -1506,7 +1505,6 @@
                     sy.description AS description,
                     ti.start_time  AS startyear,
                     ti.stop_time   AS endyear,
-                    ms.name        AS station_name,
                     gf.name        AS fraction
                 FROM     sediment_load sy
                     JOIN sediment_load_values syv


More information about the Dive4Elements-commits mailing list