diff flys-artifacts/doc/conf/meta-data.xml @ 5210:908848b74d7e

SCHEME CHANGE: dgm now uses time intervals and ranges
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 08 Mar 2013 18:15:48 +0100
parents 8c65acf01adc
children a75acd0d5fee
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Fri Mar 08 17:44:12 2013 +0100
+++ b/flys-artifacts/doc/conf/meta-data.xml	Fri Mar 08 18:15:48 2013 +0100
@@ -972,12 +972,15 @@
                 <dems>
                   <dc:context>
                     <dc:statement>
-                      SELECT id    AS dem_id,
-                             lower AS dem_lower,
-                             upper AS dem_upper,
-                             name AS name,
-                             projection || ' | ' || year_from || ' - ' || year_to AS info
-                      FROM dem WHERE river_id = ${river_id}
+                      SELECT d.id    AS dem_id,
+                             r.a     AS dem_lower,
+                             r.b     AS dem_upper,
+                             d.name  AS name,
+                             d.projection || ' | ' || t.start || ' - ' || t.stop AS info
+                             FROM dem d
+                             JOIN ranges r ON d.range_id r.id
+                             JOIN time_intervals t ON d.time_interval_id t.id
+                             WHERE river_id = ${river_id}
                     </dc:statement>
                     <dc:elements>
                         <dem>

http://dive4elements.wald.intevation.org