diff gnv-artifacts/doc/conf/queries.properties @ 242:5925739d25ac

Added ODV-Export to HorizontalProfiles in Meshes gnv-artifacts/trunk@310 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 10 Nov 2009 08:35:18 +0000
parents 8500529d82af
children b599de3db552
line wrap: on
line diff
--- a/gnv-artifacts/doc/conf/queries.properties	Mon Nov 09 15:24:41 2009 +0000
+++ b/gnv-artifacts/doc/conf/queries.properties	Tue Nov 10 08:35:18 2009 +0000
@@ -450,7 +450,7 @@
          MEDIAN.MESHPOINT, \
          MEDIAN.MESH m, \
          MEDIAN.MESHSCALARVALUE msv, \
-         MEDIAN.SOURCEINFO SI, \
+         MEDIAN.SOURCEINFO SI \
     where m.SOURCEID = SI.SOURCEID AND \
           msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \
           ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \
@@ -700,6 +700,46 @@
             msv.PARAMETERID, \
             MEDIAN.MESHPOINT.JPOSITION , \
             MEDIAN.MESHPOINT.IPOSITION
+            
+horizontalprofile_mesh_odv_data =  SELECT SI.NAME CRUISE, \
+          m.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \
+          '*' TYPE, \
+          ST_ASTEXT(SHAPE), \
+          0 BOTDEPTH, \
+          (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \
+          msv.DATAVALUE , \
+          msv.PARAMETERID PARAMETERID, \
+          msv.TIMEVALUE, \
+          MEDIAN.MESHPOINT.JPOSITION , \
+          MEDIAN.MESHPOINT.IPOSITION \
+    from MEDIAN.MESHLAYER ml, \
+         MEDIAN.MESHPOINT , \
+         MEDIAN.MESH m, \
+         MEDIAN.MESHSCALARVALUE msv, \
+         MEDIAN.SOURCEINFO SI \
+    where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \
+          ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \
+          ml.MESHID = MEDIAN.MESHPOINT.MESHID and \
+          m.MESHID = MEDIAN.MESHPOINT.MESHID AND \
+          m.SOURCEID = SI.SOURCEID AND \
+          m.PARTIDMIN <= msv.PARTID AND \
+          m.PARTIDMAX >= msv.PARTID AND \
+          msv.PARAMETERID in (?) AND \
+          msv.TIMEVALUE in (?) AND \
+          m.OBJECTID = ? AND \
+          MEDIAN.MESHPOINT.FEATUREID in \
+            ( select FEATUREID \
+              from MEDIAN.MESHPOINT mp, \
+                   MEDIAN.MESH m \
+              where m.OBJECTID = ? AND \
+                    mp.MESHID = m.MESHID  AND \
+                    KPOSITION in ( ? ) and \
+                    ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \
+   order by msv.TIMEVALUE, \
+            MEDIAN.MESHPOINT.KPOSITION, \
+            msv.PARAMETERID, \
+            MEDIAN.MESHPOINT.JPOSITION , \
+            MEDIAN.MESHPOINT.IPOSITION
              
              
 #############################################

http://dive4elements.wald.intevation.org