Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/doc/conf/queries.properties @ 1059:174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
gnv-artifacts/trunk@1138 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 31 May 2010 08:20:17 +0000 |
parents | 04967dc9c83f |
children | 9bb1979aabbe |
rev | line source |
---|---|
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 ########## Zeitserie ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
5 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 timeseries_timeseriespoint=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
8 tsp.FEATUREID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 tsp.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 FROM MEDIAN.TIMESERIESPOINT tsp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 MEDIAN.MEASUREMENT mmt \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 WHERE tsp.FEATUREID = mmt.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 mmt.SOURCEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 order by tsp.name |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 |
224
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
16 timeseries_timeseriespoint_with_area=SELECT \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
17 MEDIAN.TIMESERIESPOINT.FEATUREID KEY, \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
18 MEDIAN.TIMESERIESPOINT.NAME VALUE \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
19 FROM MEDIAN.TIMESERIESPOINT, \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
20 MEDIAN.MEASUREMENT MMT \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
21 WHERE MEDIAN.TIMESERIESPOINT.FEATUREID = MMT.FEATUREID AND \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
22 MMT.SOURCEID = ? AND \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
23 INTERSECTS(SHAPE, \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
24 (SELECT st_astext(SHAPE) \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
25 FROM MEDIAN.FEATUREAREA \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
26 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
27 FEATURECODE = ? )\ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
28 )\ |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
29 ORDER BY MEDIAN.TIMESERIESPOINT.NAME |
2b7a40b5b535
Added the RegionFilters into the configuration of the Products for TimeSeriesPoints.
Tim Englich <tim.englich@intevation.de>
parents:
223
diff
changeset
|
30 |
738
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
31 timeseries_timeseriespoint_with_wkt=SELECT \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
32 MEDIAN.TIMESERIESPOINT.FEATUREID KEY, \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
33 MEDIAN.TIMESERIESPOINT.NAME VALUE \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
34 FROM MEDIAN.TIMESERIESPOINT, \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
35 MEDIAN.MEASUREMENT MMT \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
36 WHERE MEDIAN.TIMESERIESPOINT.FEATUREID = MMT.FEATUREID AND \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
37 MMT.SOURCEID = ? AND \ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
38 INTERSECTS(SHAPE,"?")\ |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
39 ORDER BY MEDIAN.TIMESERIESPOINT.NAME |
40c9a48f51ea
Modified the Workflow of TimeSeries on TimeSeriespoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
737
diff
changeset
|
40 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 timeseries_parameter=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 p.PARAMETERID KEY, \ |
338
c94936b1f4ba
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
336
diff
changeset
|
43 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
c94936b1f4ba
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
336
diff
changeset
|
44 p.GERMANNAME \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
45 FROM MEDIAN.PARAMETER P, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
46 MEDIAN.TIMESERIES TS, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
47 MEDIAN.TIMESERIESVALUE TSV, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
48 MEDIAN.MEASUREMENT M, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
49 MEDIAN.TIMESERIESPOINT TSP \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
50 WHERE M.FEATUREID = TSP.FEATUREID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
51 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
52 TS.TIMESERIESID = TSV.TIMESERIESID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
53 P.PARAMETERID = TS.PARAMETERID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
54 TSP.FEATUREID = ? \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
55 ORDER BY P.GERMANNAME |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
56 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
57 timeseries_depth_height=SELECT DISTINCT \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
58 M.MEASUREMENTID KEY, \ |
634
58c32df1a44d
Improved the describe document so that we are able to render a measurement-parameter-matrix with these data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
616
diff
changeset
|
59 M.ZLOCATION VALUE, \ |
58c32df1a44d
Improved the describe document so that we are able to render a measurement-parameter-matrix with these data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
616
diff
changeset
|
60 P.PARAMETERID PARAMETERID \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
61 FROM MEDIAN.MEASUREMENT M, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
62 MEDIAN.TIMESERIESVALUE TSV, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
63 MEDIAN.TIMESERIES T, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
64 MEDIAN.PARAMETER P \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
65 WHERE M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
66 TSV.TIMESERIESID = T.TIMESERIESID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
67 T.PARAMETERID = P.PARAMETERID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
68 M.FEATUREID = ? AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
69 P.PARAMETERID IN (?)\ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
70 ORDER BY m.ZLOCATION DESC |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
71 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
72 timeseries_interval=select min(tv.TIMEVALUE) MIN, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
73 max(tv.TIMEVALUE) MAX \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
74 from MEDIAN.TIMESERIES t, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
75 MEDIAN.TIMESERIESVALUE tv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
76 where tv.TIMESERIESID = t.TIMESERIESID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
77 t.PARAMETERID IN ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
78 tv.MEASUREMENTID IN ( ? ) |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
79 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
80 timeseries_chart_data=SELECT tv.TIMEVALUE XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
81 tv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
82 t.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
83 tv.MEASUREMENTID GROUP2, \ |
217
3dcd2b0b456e
Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45
Tim Englich <tim.englich@intevation.de>
parents:
216
diff
changeset
|
84 tv.TIMESERIESID GROUP3, \ |
3dcd2b0b456e
Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45
Tim Englich <tim.englich@intevation.de>
parents:
216
diff
changeset
|
85 t.TIMEINTERVAL GAPID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
86 FROM MEDIAN.TIMESERIESVALUE tv, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
87 MEDIAN.TIMESERIES t \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
88 WHERE tv.TIMESERIESID = t.TIMESERIESID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
89 t.PARAMETERID IN ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
90 tv.MEASUREMENTID IN ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
91 tv.TIMEVALUE >= ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
92 tv.TIMEVALUE <= ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
93 ORDER BY tv.MEASUREMENTID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
94 tv.TIMESERIESID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
95 t.PARAMETERID, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
96 tv.TIMEVALUE |
232
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
97 |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
98 timeseries_odv_data = SELECT SI.NAME CRUISE, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
99 MEDIAN.TIMESERIESPOINT.NAME STATION, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
100 '*' TYPE, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
101 ST_ASTEXT(SHAPE), \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
102 0 BOTDEPTH, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
103 (M.ZLOCATION *-1) DEPTH, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
104 TSV.TIMEVALUE, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
105 TSV.DATAVALUE, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
106 TS.PARAMETERID PARAMETER, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
107 TSV.MEASUREMENTID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
108 TSV.TIMESERIESID, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
109 '1' QF \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
110 FROM MEDIAN.TIMESERIESPOINT, \ |
232
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
111 MEDIAN.TIMESERIESVALUE TSV, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
112 MEDIAN.TIMESERIES TS, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
113 MEDIAN.MEASUREMENT M, \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
114 MEDIAN.SOURCEINFO SI \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
115 WHERE SI.SOURCEID = M.SOURCEID AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
116 M.FEATUREID = MEDIAN.TIMESERIESPOINT.FEATUREID AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
117 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
118 TSV.TIMESERIESID = TS.TIMESERIESID AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
119 TS.PARAMETERID IN ( ? ) AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
120 TSV.MEASUREMENTID IN ( ? ) AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
121 TSV.TIMEVALUE >= ? AND \ |
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
122 TSV.TIMEVALUE <= ? \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
123 ORDER BY TS.PARAMETERID, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
124 TSV.MEASUREMENTID, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
125 TSV.TIMESERIESID, \ |
232
3d6d89bcbf42
Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents:
224
diff
changeset
|
126 TSV.TIMEVALUE |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
127 |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
128 ############################################# |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
129 ############################################# |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
130 ########## Zeitserie ############## |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
131 ########## Vektordaten ############### |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
132 ############################################# |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
133 ############################################# |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
134 |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
135 timeseries_parameter_vector=SELECT DISTINCT \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
136 p.PARAMETERID KEY, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
137 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
138 p.GERMANNAME \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
139 FROM MEDIAN.PARAMETER P, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
140 MEDIAN.TIMESERIES TS, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
141 MEDIAN.TIMESERIESVECTORVALUE TSV, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
142 MEDIAN.MEASUREMENT M, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
143 MEDIAN.TIMESERIESPOINT TSP \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
144 WHERE M.FEATUREID = TSP.FEATUREID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
145 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
146 TS.TIMESERIESID = TSV.TIMESERIESID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
147 P.PARAMETERID = TS.PARAMETERID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
148 TSP.FEATUREID = ? \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
149 ORDER BY P.GERMANNAME |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
150 |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
151 timeseries_depth_height_vector=SELECT DISTINCT \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
152 M.MEASUREMENTID KEY, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
153 M.ZLOCATION VALUE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
154 P.PARAMETERID PARAMETERID \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
155 FROM MEDIAN.MEASUREMENT M, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
156 MEDIAN.TIMESERIESVECTORVALUE TSV, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
157 MEDIAN.TIMESERIES T, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
158 MEDIAN.PARAMETER P \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
159 WHERE M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
160 TSV.TIMESERIESID = T.TIMESERIESID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
161 T.PARAMETERID = P.PARAMETERID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
162 M.FEATUREID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
163 P.PARAMETERID = ? \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
164 ORDER BY m.ZLOCATION DESC |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
165 |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
166 timeseries_interval_vector=select min(tsv.TIMEVALUE) MIN, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
167 max(tsv.TIMEVALUE) MAX \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
168 from MEDIAN.TIMESERIES t, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
169 MEDIAN.TIMESERIESVECTORVALUE tsv \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
170 where tsv.TIMESERIESID = t.TIMESERIESID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
171 t.PARAMETERID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
172 tsv.MEASUREMENTID = ? |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
173 |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
174 timeseries_chart_data_vector=SELECT tsv.TIMEVALUE XORDINATE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
175 tsv.XCOMPONENT, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
176 tsv.YCOMPONENT, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
177 tsv.ZCOMPONENT, \ |
1042
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
178 tsv.SPEED, \ |
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
179 tsv.DIRECTION, \ |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
180 t.PARAMETERID GROUP1, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
181 tsv.MEASUREMENTID GROUP2, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
182 tsv.TIMESERIESID GROUP3, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
183 t.TIMEINTERVAL GAPID \ |
1042
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
184 FROM MEDIAN.TIMESERIESFULLVECTORVALUE tsv, \ |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
185 MEDIAN.TIMESERIES t \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
186 WHERE tsv.TIMESERIESID = t.TIMESERIESID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
187 t.PARAMETERID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
188 tsv.MEASUREMENTID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
189 tsv.TIMEVALUE >= ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
190 tsv.TIMEVALUE <= ? \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
191 ORDER BY tsv.MEASUREMENTID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
192 tsv.TIMESERIESID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
193 t.PARAMETERID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
194 tsv.TIMEVALUE |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
195 |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
196 timeseries_odv_data_vector = SELECT SI.NAME CRUISE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
197 MEDIAN.TIMESERIESPOINT.NAME STATION, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
198 '*' TYPE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
199 ST_ASTEXT(SHAPE), \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
200 0 BOTDEPTH, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
201 (M.ZLOCATION *-1) DEPTH, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
202 TSV.TIMEVALUE, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
203 TSV.XCOMPONENT, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
204 TSV.YCOMPONENT, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
205 TSV.ZCOMPONENT, \ |
1042
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
206 TSV.SPEED, \ |
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
207 TSV.DIRECTION, \ |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
208 TS.PARAMETERID PARAMETER, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
209 TSV.MEASUREMENTID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
210 TSV.TIMESERIESID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
211 '1' QF \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
212 FROM MEDIAN.TIMESERIESPOINT, \ |
1042
07b829c06981
Integrated View MEDIAN.TIMESERIESFULLVECTORVALUE in queries for vector data on timeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
1037
diff
changeset
|
213 MEDIAN.TIMESERIESFULLVECTORVALUE TSV, \ |
1037
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
214 MEDIAN.TIMESERIES TS, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
215 MEDIAN.MEASUREMENT M, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
216 MEDIAN.SOURCEINFO SI \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
217 WHERE SI.SOURCEID = M.SOURCEID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
218 M.FEATUREID = MEDIAN.TIMESERIESPOINT.FEATUREID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
219 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
220 TSV.TIMESERIESID = TS.TIMESERIESID AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
221 TS.PARAMETERID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
222 TSV.MEASUREMENTID = ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
223 TSV.TIMEVALUE >= ? AND \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
224 TSV.TIMEVALUE <= ? \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
225 ORDER BY TS.PARAMETERID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
226 TSV.MEASUREMENTID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
227 TSV.TIMESERIESID, \ |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
228 TSV.TIMEVALUE |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
229 |
da4306683186
Added queries for TimeSeriesPoints in vectorvalues for TimeSeries
Tim Englich <tim.englich@intevation.de>
parents:
1033
diff
changeset
|
230 ############################################ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
231 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
232 ########## Zeitserie Mesh ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
233 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
234 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
235 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
236 timeseries_mesh = SELECT OBJECTID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
237 m.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
238 FROM MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
239 WHERE SOURCEID IN (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
240 ORDER BY m.NAME |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
241 timeseries_meshpoint = SELECT MEDIAN.MESHPOINT.FEATUREID, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
242 ST_ASTEXT(SHAPE) \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
243 FROM MEDIAN.MESHPOINT, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
244 MEDIAN.MESH M \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
245 WHERE MEDIAN.MESHPOINT.MESHID = M.MESHID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
246 KPOSITION = 1 AND \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
247 M.OBJECTID = ? AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
248 INTERSECTS(SHAPE,"?") |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
249 |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
250 timeseries_meshpoint_depth = SELECT MP.FEATUREID KEY, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
251 'Layer ' || ML.KPOSITION || ': ' || -ML.UPPERZLOCATION || ' - '|| -ML.LOWERZLOCATION VALUE \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
252 from MEDIAN.MESHLAYER ML, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
253 MEDIAN.MESHPOINT MP, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
254 MEDIAN.MESH M \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
255 WHERE ML.KPOSITION = MP.KPOSITION AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
256 ML.MESHID = MP.MESHID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
257 M.OBJECTID = ? AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
258 MP.MESHID = M.MESHID AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
259 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
260 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
261 ORDER BY ML.UPPERZLOCATION DESC |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
262 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
263 timeseries_mesh_parameter=SELECT distinct \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
264 p.PARAMETERID KEY, \ |
356
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
265 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
266 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
267 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
268 MEDIAN.MESHSCALARVALUE msc, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
269 MEDIAN.MESH m \ |
749
686eecfafbbf
Bugfixes: Fixed the Query for Parameters in Timeseries and VerticalProfiles in Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
741
diff
changeset
|
270 where m.OBJECTID = ? AND \ |
737
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
271 msc.PARTID >= m.PARTIDMIN AND \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
272 msc.PARTID <= m.PARTIDMAX AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
273 msc.PARAMETERID = p.PARAMETERID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
274 order by p.GERMANNAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
275 timeseries_mesh_interval=select /*+ parallel(TIMEVALUE,5) */ \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
276 min(TIMEVALUE) MIN, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
277 max(TIMEVALUE) MAX \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
278 from MEDIAN.MESHSCALARVALUE msc, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
279 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
280 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
281 msc.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
282 msc.PARTID <= m.PARTIDMAX AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
283 msc.PARAMETERID IN (?) |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
284 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
285 timeseries_mesh_chart_data=select /*+ parallel(timevalue,10) */ \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
286 msv.TIMEVALUE XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
287 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
288 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
289 msv.FEATUREID GROUP2, \ |
217
3dcd2b0b456e
Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45
Tim Englich <tim.englich@intevation.de>
parents:
216
diff
changeset
|
290 mp.FEATUREID GROUP3, \ |
3dcd2b0b456e
Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45
Tim Englich <tim.englich@intevation.de>
parents:
216
diff
changeset
|
291 -1 GAPID \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
292 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
293 MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
294 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
295 where (m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
296 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
297 msv.PARTID <= m.PARTIDMAX ) AND \ |
306
e7f1c79bf9cd
Bugfix for issue91, wrong depth will be drawn in TimeseriesCharts in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
247
diff
changeset
|
298 msv.FEATUREID = mp.FEATUREID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
299 msv.PARAMETERID in ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
300 mp.FEATUREID in ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
301 msv.TIMEVALUE >= ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
302 msv.TIMEVALUE <= ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
303 order by mp.FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
304 msv.FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
305 msv.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
306 msv.TIMEVALUE |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
307 |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
308 timeseries_mesh_odv_data = select /*+ parallel(timevalue,10) */ \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
309 SI.NAME CRUISE, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
310 m.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
311 '*' TYPE, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
312 ST_ASTEXT(SHAPE), \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
313 0 BOTDEPTH, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
314 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
315 msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
316 msv.DATAVALUE, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
317 msv.PARAMETERID PARAMETER, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
318 '1' QF \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
319 from MEDIAN.MESHSCALARVALUE msv, \ |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
320 MEDIAN.MESHPOINT, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
321 MEDIAN.MESH m, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
322 MEDIAN.SOURCEINFO SI, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
323 MEDIAN.MESHLAYER ML \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
324 where (m.OBJECTID = ? AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
325 msv.PARTID >= m.PARTIDMIN AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
326 msv.PARTID <= m.PARTIDMAX ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
327 m.SOURCEID = SI.SOURCEID AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
328 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
329 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION AND \ |
306
e7f1c79bf9cd
Bugfix for issue91, wrong depth will be drawn in TimeseriesCharts in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
247
diff
changeset
|
330 msv.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
331 msv.PARAMETERID in (? ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
332 MEDIAN.MESHPOINT.FEATUREID in ( ? ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
333 msv.TIMEVALUE >= ? AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
334 msv.TIMEVALUE <= ? \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
335 order by MEDIAN.MESHPOINT.FEATUREID, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
336 msv.FEATUREID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
337 msv.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
338 msv.PARAMETERID |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
339 |
1043
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
340 ############################################# |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
341 ############################################# |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
342 ########## Zeitserie Mesh ############## |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
343 ########## Vektordaten ############## |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
344 ############################################# |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
345 ############################################# |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
346 |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
347 timeseries_mesh_parameter_vector=SELECT DISTINCT \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
348 P.PARAMETERID KEY, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
349 P.GERMANNAME || ' ['|| P.UNIT ||']' VALUE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
350 P.GERMANNAME \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
351 FROM MEDIAN.PARAMETER P, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
352 MEDIAN.MESHVECTORVALUE MVV, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
353 MEDIAN.MESH M \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
354 WHERE M.OBJECTID = ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
355 MVV.PARTID >= M.PARTIDMIN AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
356 MVV.PARTID <= M.PARTIDMAX AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
357 MVV.PARAMETERID = P.PARAMETERID \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
358 ORDER BY P.GERMANNAME |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
359 |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
360 timeseries_mesh_interval_vector=SELECT /*+ parallel(TIMEVALUE,5) */ \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
361 MIN(TIMEVALUE) MIN, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
362 MAX(TIMEVALUE) MAX \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
363 FROM MEDIAN.MESHVECTORVALUE MVV, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
364 MEDIAN.MESH M \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
365 WHERE M.OBJECTID = ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
366 MVV.PARTID >= M.PARTIDMIN AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
367 MVV.PARTID <= M.PARTIDMAX AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
368 MVV.PARAMETERID IN (?) |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
369 |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
370 timeseries_mesh_chart_data_vector =SELECT /*+ parallel(TIMEVALUE,10) */ \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
371 MVV.TIMEVALUE XORDINATE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
372 MVV.XCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
373 MVV.YCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
374 MVV.ZCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
375 MVV.SPEED, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
376 MVV.DIRECTION, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
377 MVV.PARAMETERID GROUP1, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
378 MVV.FEATUREID GROUP2, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
379 MP.FEATUREID GROUP3, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
380 -1 GAPID \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
381 FROM MEDIAN.MESHCURRENTVALUE MVV, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
382 MEDIAN.MESHPOINT MP, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
383 MEDIAN.MESH M \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
384 WHERE (M.OBJECTID = ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
385 MVV.PARTID >= M.PARTIDMIN AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
386 MVV.PARTID <= M.PARTIDMAX ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
387 MVV.FEATUREID = MP.FEATUREID AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
388 MVV.PARAMETERID in ( ? ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
389 MP.FEATUREID in ( ? ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
390 MVV.TIMEVALUE >= ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
391 MVV.TIMEVALUE <= ? \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
392 ORDER BY MP.FEATUREID, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
393 MVV.FEATUREID, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
394 MVV.PARAMETERID, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
395 MVV.TIMEVALUE |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
396 |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
397 timeseries_mesh_odv_data_vector = SELECT /*+ parallel(timevalue,10) */ \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
398 SI.NAME CRUISE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
399 M.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
400 '*' TYPE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
401 ST_ASTEXT(SHAPE), \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
402 0 BOTDEPTH, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
403 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
404 MVV.TIMEVALUE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
405 MVV.XCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
406 MVV.YCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
407 MVV.ZCOMPONENT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
408 MVV.SPEED, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
409 MVV.DIRECTION, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
410 MVV.PARAMETERID PARAMETER, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
411 '1' QF \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
412 FROM MEDIAN.MESHCURRENTVALUE MVV, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
413 MEDIAN.MESHPOINT, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
414 MEDIAN.MESH M, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
415 MEDIAN.SOURCEINFO SI, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
416 MEDIAN.MESHLAYER ML \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
417 WHERE (M.OBJECTID = ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
418 MVV.PARTID >= M.PARTIDMIN AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
419 MVV.PARTID <= M.PARTIDMAX ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
420 M.SOURCEID = SI.SOURCEID AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
421 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
422 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
423 MVV.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
424 MVV.PARAMETERID in (? ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
425 MEDIAN.MESHPOINT.FEATUREID in ( ? ) AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
426 MVV.TIMEVALUE >= ? AND \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
427 MVV.TIMEVALUE <= ? \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
428 ORDER BY MEDIAN.MESHPOINT.FEATUREID, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
429 MVV.FEATUREID, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
430 MVV.TIMEVALUE, \ |
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
431 MVV.PARAMETERID |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
432 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
433 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
434 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
435 ########## Vertikalprofil ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
436 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
437 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
438 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
439 verticalprofile_point=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
440 tsp.FEATUREID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
441 tsp.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
442 FROM MEDIAN.TIMESERIESPOINT tsp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
443 MEDIAN.MEASUREMENT mmt \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
444 WHERE tsp.FEATUREID = mmt.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
445 mmt.SOURCEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
446 order by tsp.name |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
447 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
448 verticalprofile_parameter=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
449 p.PARAMETERID KEY, \ |
356
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
450 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
451 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
452 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
453 MEDIAN.TIMESERIES ts, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
454 MEDIAN.TIMESERIESVALUE tsv, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
455 MEDIAN.MEASUREMENT m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
456 where ts.PARAMETERID = p.PARAMETERID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
457 ts.TIMESERIESID = tsv.TIMESERIESID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
458 m.MEASUREMENTID = tsv.MEASUREMENTID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
459 m.FEATUREID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
460 ORDER BY p.GERMANNAME |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
461 |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
462 verticalprofile_minmaxdepth= SELECT min(M.ZLOCATION) MIN, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
463 max(M.ZLOCATION) MAX \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
464 FROM MEDIAN.MEASUREMENT M, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
465 MEDIAN.TIMESERIES TS, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
466 MEDIAN.TIMESERIESVALUE TSV \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
467 WHERE TS.TIMESERIESID = TSV.TIMESERIESID and \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
468 M.MEASUREMENTID = TSV.MEASUREMENTID and \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
469 M.FEATUREID = ? and \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
470 TS.PARAMETERID IN ( ? ) |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
471 |
469
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
472 |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
473 verticalprofile_year=select distinct \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
474 to_char(tsv.TIMEVALUE,'YYYY') KEY, \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
475 to_char(tsv.TIMEVALUE,'YYYY') VALUE \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
476 from MEDIAN.TIMESERIES ts, \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
477 MEDIAN.TIMESERIESVALUE tsv, \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
478 MEDIAN.MEASUREMENT m \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
479 where ts.TIMESERIESID = tsv.TIMESERIESID and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
480 m.MEASUREMENTID = tsv.MEASUREMENTID and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
481 m.FEATUREID = ? and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
482 ts.PARAMETERID IN ( ? ) \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
483 order by to_char(tsv.TIMEVALUE,'YYYY') |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
484 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
485 verticalprofile_date=select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
486 tsv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
487 tsv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
488 from MEDIAN.TIMESERIES ts, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
489 MEDIAN.TIMESERIESVALUE tsv, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
490 MEDIAN.MEASUREMENT m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
491 where ts.TIMESERIESID = tsv.TIMESERIESID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
492 m.MEASUREMENTID = tsv.MEASUREMENTID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
493 m.FEATUREID = ? and \ |
469
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
494 ts.PARAMETERID IN ( ? ) and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
495 to_char(tsv.TIMEVALUE,'YYYY') IN (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
496 order by tsv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
497 |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
498 verticalprofile_chart_data= SELECT M.ZLOCATION XORDINATE, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
499 TSV.DATAVALUE YORDINATE, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
500 TS.PARAMETERID GROUP1, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
501 TSV.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
502 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
503 1 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
504 M.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
505 TS.TIMESERIESID \ |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
506 from MEDIAN.TIMESERIES TS, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
507 MEDIAN.TIMESERIESVALUE TSV, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
508 MEDIAN.MEASUREMENT M \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
509 where TS.TIMESERIESID = TSV.TIMESERIESID AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
510 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
511 M.FEATUREID = ? AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
512 TS.PARAMETERID IN ( ? ) AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
513 TSV.TIMEVALUE IN (?) AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
514 M.ZLOCATION >= ? AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
515 M.ZLOCATION <= ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
516 ORDER BY TSV.TIMEVALUE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
517 TSV.TIMESERIESID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
518 TS.PARAMETERID, \ |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
519 TSV.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
520 |
237
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
521 verticalprofile_odv_data = SELECT SI.NAME CRUISE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
522 MEDIAN.TIMESERIESPOINT.NAME STATION, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
523 '*' TYPE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
524 ST_ASTEXT(SHAPE), \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
525 0 BOTDEPTH, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
526 (M.ZLOCATION *-1) DEPTH, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
527 TSV.TIMEVALUE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
528 TSV.DATAVALUE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
529 TS.PARAMETERID PARAMETER, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
530 TSV.MEASUREMENTID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
531 TSV.TIMESERIESID, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
532 '1' QF \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
533 FROM MEDIAN.TIMESERIESPOINT, \ |
237
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
534 MEDIAN.TIMESERIESVALUE TSV, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
535 MEDIAN.TIMESERIES TS, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
536 MEDIAN.MEASUREMENT M, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
537 MEDIAN.SOURCEINFO SI \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
538 WHERE SI.SOURCEID = M.SOURCEID AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
539 M.FEATUREID = MEDIAN.TIMESERIESPOINT.FEATUREID AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
540 M.MEASUREMENTID = TSV.MEASUREMENTID AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
541 TSV.TIMESERIESID = TS.TIMESERIESID AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
542 M.FEATUREID = ? AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
543 TS.PARAMETERID IN ( ? ) AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
544 TSV.TIMEVALUE IN (?) AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
545 M.ZLOCATION >= ? AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
546 M.ZLOCATION <= ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
547 ORDER BY TSV.MEASUREMENTID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
548 TSV.TIMESERIESID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
549 TSV.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
550 TS.PARAMETERID |
1043
d955571cdf2a
Added queries for Meshes using Vectorvalues for TimeSeries.
Tim Englich <tim.englich@intevation.de>
parents:
1042
diff
changeset
|
551 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
552 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
553 ############################################# |
1059
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
554 ########## Vertikalprofil ############## |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
555 ########## Vektordaten ############## |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
556 ############################################# |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
557 ############################################# |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
558 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
559 verticalprofile_parameter_vector=SELECT DISTINCT \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
560 P.PARAMETERID KEY, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
561 P.GERMANNAME || ' ['|| P.UNIT ||']' VALUE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
562 P.GERMANNAME \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
563 from MEDIAN.PARAMETER P, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
564 MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
565 MEDIAN.TIMESERIESVECTORVALUE TVV, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
566 MEDIAN.MEASUREMENT M \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
567 where TS.PARAMETERID = P.PARAMETERID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
568 TS.TIMESERIESID = TVV.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
569 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
570 M.FEATUREID = ? \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
571 ORDER BY P.GERMANNAME |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
572 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
573 verticalprofile_minmaxdepth_vector= SELECT MIN(M.ZLOCATION) MIN, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
574 MAX(M.ZLOCATION) MAX \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
575 FROM MEDIAN.MEASUREMENT M, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
576 MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
577 MEDIAN.TIMESERIESVECTORVALUE TVV \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
578 WHERE TS.TIMESERIESID = TVV.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
579 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
580 M.FEATUREID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
581 TS.PARAMETERID = ? |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
582 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
583 verticalprofile_year_vector=SELECT DISTINCT \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
584 TO_CHAR(TVV.TIMEVALUE,'YYYY') KEY, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
585 TO_CHAR(TVV.TIMEVALUE,'YYYY') VALUE \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
586 FROM MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
587 MEDIAN.TIMESERIESVECTORVALUE TVV, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
588 MEDIAN.MEASUREMENT M \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
589 WHERE TS.TIMESERIESID = TVV.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
590 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
591 M.FEATUREID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
592 TS.PARAMETERID = ? \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
593 ORDER BY to_char(TVV.TIMEVALUE,'YYYY') |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
594 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
595 verticalprofile_date_vector=SELECT DISTINCT \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
596 TVV.TIMEVALUE KEY, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
597 TVV.TIMEVALUE VALUE \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
598 from MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
599 MEDIAN.TIMESERIESVECTORVALUE TVV, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
600 MEDIAN.MEASUREMENT M \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
601 WHERE TS.TIMESERIESID = TVV.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
602 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
603 M.FEATUREID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
604 TS.PARAMETERID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
605 TO_CHAR(TVV.TIMEVALUE,'YYYY') IN (?) \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
606 ORDER BY TVV.TIMEVALUE |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
607 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
608 verticalprofile_chart_data_vector= SELECT M.ZLOCATION XORDINATE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
609 TS.PARAMETERID GROUP1, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
610 TVV.TIMEVALUE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
611 TVV.XCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
612 TVV.YCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
613 TVV.ZCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
614 TVV.SPEED, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
615 TVV.DIRECTION, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
616 1 GROUP3, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
617 1 DATAID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
618 M.FEATUREID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
619 TS.TIMESERIESID \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
620 FROM MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
621 MEDIAN.TIMESERIESFULLVECTORVALUE TVV, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
622 MEDIAN.MEASUREMENT M \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
623 WHERE TS.TIMESERIESID = TVV.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
624 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
625 M.FEATUREID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
626 TS.PARAMETERID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
627 TVV.TIMEVALUE = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
628 M.ZLOCATION >= ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
629 M.ZLOCATION <= ? \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
630 ORDER BY TVV.TIMEVALUE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
631 TVV.TIMESERIESID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
632 TS.PARAMETERID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
633 TVV.TIMEVALUE |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
634 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
635 verticalprofile_odv_data_vector = SELECT SI.NAME CRUISE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
636 MEDIAN.TIMESERIESPOINT.NAME STATION, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
637 '*' TYPE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
638 ST_ASTEXT(SHAPE), \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
639 0 BOTDEPTH, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
640 (M.ZLOCATION *-1) DEPTH, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
641 TVV.TIMEVALUE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
642 TVV.XCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
643 TVV.YCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
644 TVV.ZCOMPONENT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
645 TVV.SPEED, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
646 TVV.DIRECTION, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
647 TS.PARAMETERID PARAMETER, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
648 TVV.MEASUREMENTID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
649 TVV.TIMESERIESID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
650 '1' QF \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
651 FROM MEDIAN.TIMESERIESPOINT, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
652 MEDIAN.TIMESERIESFULLVECTORVALUE TVV, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
653 MEDIAN.TIMESERIES TS, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
654 MEDIAN.MEASUREMENT M, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
655 MEDIAN.SOURCEINFO SI \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
656 WHERE SI.SOURCEID = M.SOURCEID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
657 M.FEATUREID = MEDIAN.TIMESERIESPOINT.FEATUREID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
658 M.MEASUREMENTID = TVV.MEASUREMENTID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
659 TVV.TIMESERIESID = TS.TIMESERIESID AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
660 M.FEATUREID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
661 TS.PARAMETERID = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
662 TVV.TIMEVALUE = ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
663 M.ZLOCATION >= ? AND \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
664 M.ZLOCATION <= ? \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
665 ORDER BY TVV.MEASUREMENTID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
666 TVV.TIMESERIESID, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
667 TVV.TIMEVALUE, \ |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
668 TS.PARAMETERID |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
669 |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
670 ############################################# |
174f6eacd595
Added queries for TimeSeriesPoints using vectorvalues for verticalprofiles
Tim Englich <tim.englich@intevation.de>
parents:
1057
diff
changeset
|
671 ############################################# |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
672 ########## Vertikalprofil Mesh ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
673 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
674 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
675 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
676 verticalprofile_mesh = SELECT OBJECTID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
677 m.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
678 FROM MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
679 WHERE SOURCEID IN (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
680 order by m.NAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
681 |
223
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
682 verticalprofile_mesh_with_area = SELECT M.OBJECTID KEY, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
683 M.NAME VALUE \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
684 FROM MEDIAN.MESHPOINT, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
685 MEDIAN.MESH M \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
686 WHERE M.SOURCEID IN (?) AND \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
687 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
688 INTERSECTS(SHAPE, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
689 (SELECT st_astext(SHAPE) \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
690 FROM MEDIAN.FEATUREAREA \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
691 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
692 FEATURECODE = ? )\ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
693 ) \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
694 order by M.NAME |
737
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
695 |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
696 verticalprofile_mesh_with_wkt = SELECT M.OBJECTID KEY, \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
697 M.NAME VALUE \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
698 FROM MEDIAN.MESHPOINT, \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
699 MEDIAN.MESH M \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
700 WHERE M.SOURCEID IN (?) AND \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
701 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
702 INTERSECTS(SHAPE, "?") \ |
3f8f71e88587
Modified the Workflow of TimeSeries on Meshes that the Data that was sent by the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
728
diff
changeset
|
703 order by M.NAME |
223
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
704 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
705 verticalprofile_mesh_point = SELECT FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
706 ST_ASTEXT(SHAPE) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
707 FROM MEDIAN.MESHPOINT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
708 WHERE MESHID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
709 (SELECT DISTINCT MESHID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
710 FROM MEDIAN.MESH \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
711 WHERE OBJECTID = ?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
712 KPOSITION = 1 AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
713 INTERSECTS(SHAPE,"?") |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
714 |
213
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
715 verticalprofile_mesh_mindepth = SELECT MP.KPOSITION KEY, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
716 'Layer ' || ML.KPOSITION || ': ' || -ML.UPPERZLOCATION || ' - '|| -ML.LOWERZLOCATION VALUE \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
717 from MEDIAN.MESHLAYER ML, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
718 MEDIAN.MESHPOINT MP, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
719 MEDIAN.MESH M \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
720 WHERE ML.KPOSITION = MP.KPOSITION AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
721 ML.MESHID = MP.MESHID AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
722 M.OBJECTID = ? AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
723 MP.MESHID = M.MESHID AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
724 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
725 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
726 ORDER BY ML.UPPERZLOCATION DESC |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
727 |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
728 verticalprofile_mesh_maxdepth = SELECT MP.KPOSITION KEY, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
729 'Layer ' || ML.KPOSITION || ': ' || -ML.UPPERZLOCATION || ' - '|| -ML.LOWERZLOCATION VALUE \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
730 from MEDIAN.MESHLAYER ML, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
731 MEDIAN.MESHPOINT MP, \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
732 MEDIAN.MESH M \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
733 WHERE ML.KPOSITION = MP.KPOSITION AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
734 ML.MESHID = MP.MESHID AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
735 M.OBJECTID = ? AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
736 MP.MESHID = M.MESHID AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
737 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
738 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
739 MP.KPOSITION < ? \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
740 ORDER BY ML.UPPERZLOCATION DESC |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
741 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
742 verticalprofile_mesh_parameter=SELECT distinct \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
743 p.PARAMETERID KEY, \ |
356
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
744 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
745 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
746 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
747 MEDIAN.MESHSCALARVALUE msc, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
748 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
749 where m.OBJECTID = ? AND \ |
749
686eecfafbbf
Bugfixes: Fixed the Query for Parameters in Timeseries and VerticalProfiles in Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
741
diff
changeset
|
750 msc.PARTID >= m.PARTIDMIN AND \ |
686eecfafbbf
Bugfixes: Fixed the Query for Parameters in Timeseries and VerticalProfiles in Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
741
diff
changeset
|
751 msc.PARTID <= m.PARTIDMAX AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
752 msc.PARAMETERID = p.PARAMETERID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
753 order by p.GERMANNAME |
523
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
754 |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
755 verticalprofile_mesh_year= select distinct \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
756 to_char(msv.TIMEVALUE,'YYYY') KEY, \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
757 to_char(msv.TIMEVALUE,'YYYY') VALUE \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
758 from MEDIAN.MESHSCALARVALUE msv, \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
759 MEDIAN.MESH m \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
760 where m.OBJECTID = ? AND \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
761 msv.PARTID >= m.PARTIDMIN AND \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
762 msv.PARTID <= m.PARTIDMAX AND \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
763 msv.PARAMETERID in (?) \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
764 order by to_char(msv.TIMEVALUE, 'YYYY') |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
765 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
766 verticalprofile_mesh_date= select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
767 msv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
768 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
769 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
770 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
771 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
772 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
773 msv.PARTID <= m.PARTIDMAX AND \ |
523
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
774 msv.PARAMETERID in (?) AND \ |
c6249cb631df
Splitted date selection of horizontal profile charts into two parts - selection of a year and selection of a concrete date of this year.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
482
diff
changeset
|
775 to_char(msv.TIMEVALUE,'YYYY') in (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
776 order by msv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
777 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
778 verticalprofile_mesh_chart_data=select ml.UPPERZLOCATION XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
779 msv.DATAVALUE YORDINATE, \ |
370
061355435075
Changed depending value for gap detection in verticalprofile charts on meshes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
356
diff
changeset
|
780 mp.KPOSITION KPOSITION, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
781 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
782 msv.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
783 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
784 2 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
785 MP.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
786 MP.MESHID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
787 from MEDIAN.MESHLAYER ml, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
788 MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
789 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
790 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
791 where msv.FEATUREID = mp. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
792 ml.KPOSITION = mp.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
793 ml.MESHID = mp.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
794 m.MESHID = mp.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
795 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
796 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
797 msv.PARAMETERID in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
798 msv.TIMEVALUE in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
799 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
800 mp.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
801 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
802 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
803 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
804 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
805 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
806 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) and \ |
213
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
807 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?)) AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
808 mp.KPOSITION <= ? AND \ |
c0a798299efc
Integration of the selection of the min and max Layer used in Verticalprofiles of Meshes. issue61
Tim Englich <tim.englich@intevation.de>
parents:
211
diff
changeset
|
809 mp.KPOSITION >= ? \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
810 order by msv.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
811 msv.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
812 ml.UPPERZLOCATION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
813 |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
814 verticalprofile_mesh_odv_data=select SI.NAME CRUISE, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
815 m.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
816 '*' TYPE, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
817 ST_ASTEXT(SHAPE), \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
818 0 BOTDEPTH, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
819 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
820 msv.DATAVALUE, \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
821 msv.PARAMETERID PARAMETER, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
822 msv.TIMEVALUE , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
823 '1' QF \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
824 from MEDIAN.MESHLAYER ml, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
825 MEDIAN.MESHPOINT, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
826 MEDIAN.MESH m, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
827 MEDIAN.MESHSCALARVALUE msv, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
828 MEDIAN.SOURCEINFO SI \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
829 where m.SOURCEID = SI.SOURCEID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
830 msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
831 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
832 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
833 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
834 m.PARTIDMIN <= msv.PARTID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
835 m.PARTIDMAX >= msv.PARTID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
836 msv.PARAMETERID in (?) AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
837 msv.TIMEVALUE in (?) AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
838 m.OBJECTID = ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
839 MEDIAN.MESHPOINT.FEATUREID in \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
840 ( select FEATUREID \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
841 from MEDIAN.MESHPOINT mp, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
842 MEDIAN.MESH m \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
843 where m.OBJECTID = ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
844 mp.MESHID = m.MESHID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
845 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) and \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
846 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?)) AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
847 MEDIAN.MESHPOINT.KPOSITION <= ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
848 MEDIAN.MESHPOINT.KPOSITION >= ? \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
849 order by msv.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
850 ml.UPPERZLOCATION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
851 msv.PARAMETERID |
1045
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
852 |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
853 ############################################# |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
854 ############################################# |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
855 ########## Vertikalprofil Mesh ############## |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
856 ########## Vektordaten ############## |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
857 ############################################# |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
858 ############################################# |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
859 |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
860 verticalprofile_mesh_parameter_vector=SELECT DISTINCT \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
861 P.PARAMETERID KEY, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
862 P.GERMANNAME || ' ['|| P.UNIT ||']' VALUE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
863 P.GERMANNAME \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
864 FROM MEDIAN.PARAMETER P, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
865 MEDIAN.MESHVECTORVALUE MVV, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
866 MEDIAN.MESH M \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
867 WHERE M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
868 MVV.PARTID >= M.PARTIDMIN AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
869 MVV.PARTID <= M.PARTIDMAX AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
870 MVV.PARAMETERID = P.PARAMETERID \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
871 ORDER BY P.GERMANNAME |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
872 |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
873 verticalprofile_mesh_year_vector= SELECT DISTINCT \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
874 to_char(MVV.TIMEVALUE,'YYYY') KEY, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
875 to_char(MVV.TIMEVALUE,'YYYY') VALUE \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
876 FROM MEDIAN.MESHVECTORVALUE MVV, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
877 MEDIAN.MESH M \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
878 WHERE M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
879 MVV.PARTID >= M.PARTIDMIN AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
880 MVV.PARTID <= M.PARTIDMAX AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
881 MVV.PARAMETERID in (?) \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
882 ORDER BY to_char(MVV.TIMEVALUE, 'YYYY') |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
883 |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
884 verticalprofile_mesh_date_vector= SELECT DISTINCT \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
885 MVV.TIMEVALUE KEY, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
886 MVV.TIMEVALUE VALUE \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
887 FROM MEDIAN.MESHVECTORVALUE MVV, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
888 MEDIAN.MESH M \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
889 WHERE M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
890 MVV.PARTID >= M.PARTIDMIN AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
891 MVV.PARTID <= M.PARTIDMAX AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
892 MVV.PARAMETERID in (?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
893 to_char(MVV.TIMEVALUE,'YYYY') in (?) \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
894 ORDER BY MVV.TIMEVALUE |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
895 |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
896 verticalprofile_mesh_chart_data_vector=SELECT ML.UPPERZLOCATION XORDINATE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
897 MP.KPOSITION KPOSITION, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
898 MVV.XCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
899 MVV.YCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
900 MVV.ZCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
901 MVV.SPEED, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
902 MVV.DIRECTION, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
903 MVV.PARAMETERID GROUP1, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
904 MVV.TIMEVALUE GROUP2, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
905 1 GROUP3, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
906 2 DATAID, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
907 MP.FEATUREID, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
908 MP.MESHID \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
909 from MEDIAN.MESHLAYER ML, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
910 MEDIAN.MESHPOINT MP, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
911 MEDIAN.MESH M, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
912 MEDIAN.MESHCURRENTVALUE MVV \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
913 where MVV.FEATUREID = MP. FEATUREID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
914 ML.KPOSITION = MP.KPOSITION AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
915 ML.MESHID = MP.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
916 M.MESHID = MP.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
917 M.PARTIDMIN <= MVV.PARTID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
918 M.PARTIDMAX >= MVV.PARTID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
919 MVV.PARAMETERID IN (?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
920 MVV.TIMEVALUE IN (?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
921 M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
922 MP.FEATUREID IN \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
923 ( SELECT FEATUREID \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
924 FROM MEDIAN.MESHPOINT MP, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
925 MEDIAN.MESH M \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
926 WHERE M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
927 MP.MESHID = M.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
928 IPOSITION = (SELECT IPOSITION FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
929 JPOSITION = (SELECT JPOSITION FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?)) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
930 MP.KPOSITION <= ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
931 MP.KPOSITION >= ? \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
932 ORDER BY MVV.PARAMETERID, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
933 MVV.TIMEVALUE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
934 ML.UPPERZLOCATION |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
935 |
1045
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
936 verticalprofile_mesh_odv_data_vector=SELECT SI.NAME CRUISE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
937 M.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
938 '*' TYPE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
939 ST_ASTEXT(SHAPE), \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
940 0 BOTDEPTH, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
941 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
942 MVV.XCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
943 MVV.YCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
944 MVV.ZCOMPONENT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
945 MVV.SPEED, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
946 MVV.DIRECTION, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
947 MVV.PARAMETERID PARAMETER, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
948 MVV.TIMEVALUE , \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
949 '1' QF \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
950 FROM MEDIAN.MESHLAYER ML, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
951 MEDIAN.MESHPOINT, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
952 MEDIAN.MESH M, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
953 MEDIAN.MESHCURRENTVALUE MVV, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
954 MEDIAN.SOURCEINFO SI \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
955 WHERE M.SOURCEID = SI.SOURCEID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
956 MVV.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
957 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
958 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
959 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
960 M.PARTIDMIN <= MVV.PARTID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
961 M.PARTIDMAX >= MVV.PARTID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
962 MVV.PARAMETERID IN (?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
963 MVV.TIMEVALUE IN (?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
964 M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
965 MEDIAN.MESHPOINT.FEATUREID IN \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
966 ( SELECT FEATUREID \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
967 FROM MEDIAN.MESHPOINT MP, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
968 MEDIAN.MESH M \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
969 WHERE M.OBJECTID = ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
970 MP.MESHID = M.MESHID AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
971 IPOSITION = (SELECT IPOSITION FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
972 JPOSITION = (SELECT JPOSITION FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?)) AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
973 MEDIAN.MESHPOINT.KPOSITION <= ? AND \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
974 MEDIAN.MESHPOINT.KPOSITION >= ? \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
975 ORDER BY MVV.TIMEVALUE, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
976 ML.UPPERZLOCATION, \ |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
977 MVV.PARAMETERID |
3fe08ea3f2b6
Added queries for meshes using vectorvalues for verticalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1043
diff
changeset
|
978 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
979 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
980 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
981 ##### Vertikalprofil InstantaneousPoint ##### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
982 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
983 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
984 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
985 verticalprofile_instantaneouspoint_series = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
986 S.SERIESID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
987 S.DESCRIPTION VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
988 FROM MEDIAN.SERIES S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
989 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
990 MEDIAN.MEASUREMENT M \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
991 WHERE S.SERIESID = I.SERIESID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
992 I.POINTSPEC = 4 AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
993 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
994 M.SOURCEID= ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
995 ORDER BY S.DESCRIPTION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
996 |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
997 verticalprofile_instantaneouspoint_series_with_area = SELECT \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
998 S.SERIESID KEY, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
999 S.DESCRIPTION VALUE \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1000 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1001 MEDIAN.SERIES S, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1002 MEDIAN.MEASUREMENT M \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1003 WHERE S.SERIESID = MEDIAN.INSTANTANEOUSPOINT.SERIESID AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1004 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1005 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1006 M.SOURCEID= ? AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1007 INTERSECTS(SHAPE, \ |
776
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1008 (SELECT st_astext(SHAPE) \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1009 FROM MEDIAN.FEATUREAREA \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1010 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1011 FEATURECODE = ? )\ |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1012 ) \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1013 ORDER BY S.DESCRIPTION |
776
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1014 verticalprofile_instantaneouspoint_series_with_wkt = SELECT \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1015 S.SERIESID KEY, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1016 S.DESCRIPTION VALUE \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1017 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1018 MEDIAN.SERIES S, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1019 MEDIAN.MEASUREMENT M \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1020 WHERE S.SERIESID = MEDIAN.INSTANTANEOUSPOINT.SERIESID AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1021 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1022 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1023 M.SOURCEID= ? AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1024 INTERSECTS(SHAPE, "?") \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1025 ORDER BY S.DESCRIPTION |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
1026 |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1027 verticalprofile_instantaneouspoint_point = SELECT \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1028 MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1029 to_char(MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE,'DD.MM.YYYY HH24:MI') VALUE, \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1030 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1031 ST_ASTEXT(SHAPE) \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1032 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1033 MEDIAN.MEASUREMENT M \ |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1034 WHERE MEDIAN.INSTANTANEOUSPOINT.SERIESID = ? AND \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1035 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1036 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1037 M.SOURCEID = ? \ |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1038 ORDER BY MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1039 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1040 |
776
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1041 verticalprofile_instantaneouspoint_point_with_aera = SELECT \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1042 MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1043 to_char(MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE,'DD.MM.YYYY HH24:MI') VALUE, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1044 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1045 ST_ASTEXT(SHAPE) \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1046 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1047 MEDIAN.MEASUREMENT M \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1048 WHERE MEDIAN.INSTANTANEOUSPOINT.SERIESID = ? AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1049 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1050 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1051 M.SOURCEID = ? AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1052 INTERSECTS(SHAPE, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1053 (SELECT st_astext(SHAPE) \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1054 FROM MEDIAN.FEATUREAREA \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1055 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1056 FEATURECODE = ? )\ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1057 ) \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1058 ORDER BY MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1059 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1060 |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1061 verticalprofile_instantaneouspoint_point_with_wkt = SELECT \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1062 MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1063 to_char(MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE,'DD.MM.YYYY HH24:MI') VALUE, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1064 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1065 ST_ASTEXT(SHAPE) \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1066 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1067 MEDIAN.MEASUREMENT M \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1068 WHERE MEDIAN.INSTANTANEOUSPOINT.SERIESID = ? AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1069 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1070 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1071 M.SOURCEID = ? AND \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1072 INTERSECTS(SHAPE,"?") \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1073 ORDER BY MEDIAN.INSTANTANEOUSPOINT.FEATUREID, \ |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1074 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
cee3a0c22bb1
Modified the Workflow for Verticalprofiles on Instantaneouspoints so that the Inputvalues of the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
765
diff
changeset
|
1075 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1076 verticalprofile_instantaneouspoint_parameter = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1077 P.PARAMETERID KEY, \ |
356
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
1078 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
1079 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1080 FROM MEDIAN.PARAMETER P, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1081 MEDIAN.INSTANTANEOUSPOINT IP, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1082 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1083 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1084 WHERE IP.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1085 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1086 MSV.PARAMETERID = P.PARAMETERID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1087 IP.FEATUREID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1088 ORDER BY P.GERMANNAME |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1089 |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1090 verticalprofile_instantaneouspoint_minmaxdepth = SELECT min(M.ZLOCATION) MIN, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1091 max(M.ZLOCATION) MAX \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1092 FROM MEDIAN.INSTANTANEOUSPOINT IP, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1093 MEDIAN.MEASUREMENT M, \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1094 MEDIAN.MEASUREDSCALARVALUE MSV \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1095 WHERE IP.FEATUREID = M.FEATUREID AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1096 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1097 IP.FEATUREID = ? AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1098 MSV.PARAMETERID in (?) |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1099 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1100 verticalprofile_instantaneouspoint_chart_data = SELECT M.ZLOCATION XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1101 MSV.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1102 MSV.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1103 IP.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1104 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1105 3 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1106 IP.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1107 IP.SERIESID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1108 FROM MEDIAN.INSTANTANEOUSPOINT IP, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1109 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1110 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1111 WHERE IP.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1112 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1113 IP.FEATUREID = ? AND \ |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1114 MSV.PARAMETERID in (?) AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1115 M.ZLOCATION >= ? AND \ |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
1116 M.ZLOCATION <= ? \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1117 ORDER BY IP.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1118 MSV.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1119 M.ZLOCATION |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1120 |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1121 verticalprofile_instantaneouspoint_odv_data = SELECT S.DESCRIPTION CRUISE, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1122 MEDIAN.INSTANTANEOUSPOINT.FEATUREID STATION, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1123 '*' TYPE, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1124 ST_ASTEXT(SHAPE), \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1125 0 BOTDEPTH, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1126 (M.ZLOCATION * -1) DEPTH, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1127 MSV.DATAVALUE, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1128 MSV.PARAMETERID PARAMETER, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1129 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1130 '1' QF \ |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1131 FROM MEDIAN.SERIES S, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1132 MEDIAN.INSTANTANEOUSPOINT, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1133 MEDIAN.MEASUREMENT M, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1134 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1135 WHERE S.SERIESID = MEDIAN.INSTANTANEOUSPOINT.SERIESID AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1136 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1137 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1138 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = ? AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1139 MSV.PARAMETERID in (?) AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1140 M.ZLOCATION >= ? AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1141 M.ZLOCATION <= ? \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1142 ORDER BY MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1143 M.ZLOCATION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1144 MSV.PARAMETERID |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
1145 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1146 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1147 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1148 #### Horizontalprofil InstantaneousPoint #### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1149 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1150 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1151 horizontalprofile_instantaneouspoint_vehicle = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1152 V.VEHICLEID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1153 V.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1154 FROM MEDIAN.VEHICLE V, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1155 MEDIAN.CRUISE C, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1156 MEDIAN.TRACK T, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1157 MEDIAN.SURVEYINFO S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1158 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1159 MEDIAN.MEASUREMENT M \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1160 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1161 C.CRUISEID = T.CRUISEID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1162 T.TRACKID = S.TRACKID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1163 S.SURVEYID = I.SURVEYID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1164 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1165 M.SOURCEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1166 ORDER BY V.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1167 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1168 horizontalprofile_instantaneouspoint_vehicle_with_area = SELECT V.VEHICLEID KEY, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1169 V.NAME VALUE \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1170 FROM MEDIAN.TRACK, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1171 MEDIAN.VEHICLE V, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1172 MEDIAN.CRUISE C \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1173 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1174 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1175 MEDIAN.TRACK.TRACKID IN \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1176 (SELECT DISTINCT S.TRACKID \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1177 FROM MEDIAN.MEASUREMENT M ,\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1178 MEDIAN.INSTANTANEOUSPOINT I, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1179 MEDIAN.SURVEYINFO S \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1180 WHERE M.SOURCEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1181 I.FEATUREID = M.FEATUREID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1182 S.SURVEYID = I.SURVEYID)AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1183 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1184 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1185 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1186 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1187 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1188 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1189 ORDER BY V.NAME |
741
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1190 |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1191 horizontalprofile_instantaneouspoint_vehicle_with_wkt = SELECT V.VEHICLEID KEY, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1192 V.NAME VALUE \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1193 FROM MEDIAN.TRACK, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1194 MEDIAN.VEHICLE V, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1195 MEDIAN.CRUISE C \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1196 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1197 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1198 MEDIAN.TRACK.TRACKID IN \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1199 (SELECT DISTINCT S.TRACKID \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1200 FROM MEDIAN.MEASUREMENT M ,\ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1201 MEDIAN.INSTANTANEOUSPOINT I, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1202 MEDIAN.SURVEYINFO S \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1203 WHERE M.SOURCEID = ? AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1204 I.FEATUREID = M.FEATUREID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1205 S.SURVEYID = I.SURVEYID)AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1206 INTERSECTS(SHAPE,"?") \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1207 ORDER BY V.NAME |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1208 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1209 horizontalprofile_instantaneouspoint_cruise = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1210 C.CRUISEID KEY, \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1211 V.NAME || ' ' || \ |
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1212 C.NAME || ' ' || \ |
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1213 TO_CHAR(C.STARTDATE,'DD.MM.YYYY') || ' - ' || \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1214 TO_CHAR(C.ENDDATE,'DD.MM.YYYY') VALUE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1215 V.NAME, \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1216 C.NAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1217 FROM MEDIAN.CRUISE C, \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1218 MEDIAN.VEHICLE V, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1219 MEDIAN.TRACK T, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1220 MEDIAN.SURVEYINFO S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1221 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1222 MEDIAN.MEASUREMENT M \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1223 WHERE C.VEHICLEID = V.VEHICLEID AND \ |
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1224 C.CRUISEID = T.CRUISEID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1225 T.TRACKID = S.TRACKID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1226 S.SURVEYID = I.SURVEYID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1227 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1228 C.VEHICLEID = ? AND \ |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1229 M.SOURCEID = ? \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
1230 ORDER BY V.NAME, C.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1231 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1232 horizontalprofile_instantaneouspoint_cruise_with_area = SELECT C.CRUISEID KEY, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1233 V.NAME || ' ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1234 C.NAME || ' ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1235 TO_CHAR(C.STARTDATE,'DD.MM.YYYY') || ' - ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1236 TO_CHAR(C.ENDDATE,'DD.MM.YYYY') VALUE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1237 V.NAME, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1238 C.NAME \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1239 FROM MEDIAN.TRACK, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1240 MEDIAN.VEHICLE V, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1241 MEDIAN.CRUISE C \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1242 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1243 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1244 MEDIAN.TRACK.TRACKID IN \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1245 (SELECT DISTINCT S.TRACKID \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1246 FROM MEDIAN.MEASUREMENT M ,\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1247 MEDIAN.INSTANTANEOUSPOINT I, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1248 MEDIAN.SURVEYINFO S \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1249 WHERE M.SOURCEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1250 C.VEHICLEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1251 I.FEATUREID = M.FEATUREID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1252 S.SURVEYID = I.SURVEYID)AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1253 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1254 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1255 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1256 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1257 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1258 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1259 ORDER BY V.NAME |
741
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1260 |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1261 horizontalprofile_instantaneouspoint_cruise_with_wkt = SELECT C.CRUISEID KEY, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1262 V.NAME || ' ' || \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1263 C.NAME || ' ' || \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1264 TO_CHAR(C.STARTDATE,'DD.MM.YYYY') || ' - ' || \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1265 TO_CHAR(C.ENDDATE,'DD.MM.YYYY') VALUE, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1266 V.NAME, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1267 C.NAME \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1268 FROM MEDIAN.TRACK, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1269 MEDIAN.VEHICLE V, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1270 MEDIAN.CRUISE C \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1271 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1272 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1273 MEDIAN.TRACK.TRACKID IN \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1274 (SELECT DISTINCT S.TRACKID \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1275 FROM MEDIAN.MEASUREMENT M ,\ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1276 MEDIAN.INSTANTANEOUSPOINT I, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1277 MEDIAN.SURVEYINFO S \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1278 WHERE M.SOURCEID = ? AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1279 C.VEHICLEID = ? AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1280 I.FEATUREID = M.FEATUREID AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1281 S.SURVEYID = I.SURVEYID)AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1282 INTERSECTS(SHAPE,"?") \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1283 ORDER BY V.NAME |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1284 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1285 horizontalprofile_instantaneouspoint_track= SELECT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1286 T.TRACKID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1287 to_char(T.STARTDATE,'DD.MM.YYYY HH24:MI') || ' - '|| to_char(T.ENDDATE,'DD.MM.YYYY HH24:MI') || ' - '|| T.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1288 FROM MEDIAN.TRACK T \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1289 WHERE T.CRUISEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1290 ORDER BY T.STARTDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1291 T.ENDDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1292 T.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1293 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1294 horizontalprofile_instantaneouspoint_track_with_area = SELECT \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1295 MEDIAN.TRACK.TRACKID KEY, \ |
741
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1296 to_char(STARTDATE,'DD-MM-YYYY HH24:MI') || ' - '|| to_char(ENDDATE,'DD-MM-YYYY HH24:MI') || ' - '|| NAME VALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1297 NAME \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1298 FROM MEDIAN.TRACK \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1299 WHERE MEDIAN.TRACK.CRUISEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1300 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1301 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1302 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1303 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1304 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1305 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1306 ORDER BY STARTDATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1307 ENDDATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1308 NAME |
741
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1309 |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1310 horizontalprofile_instantaneouspoint_track_with_wkt = SELECT \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1311 MEDIAN.TRACK.TRACKID KEY, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1312 to_char(STARTDATE,'DD-MM-YYYY HH24:MI') || ' - '|| to_char(ENDDATE,'DD-MM-YYYY HH24:MI') || ' - '|| NAME VALUE, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1313 NAME \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1314 FROM MEDIAN.TRACK \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1315 WHERE MEDIAN.TRACK.CRUISEID = ? AND \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1316 INTERSECTS(SHAPE, "?") \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1317 ORDER BY STARTDATE, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1318 ENDDATE, \ |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1319 NAME |
2dc0666db49a
Modified the Workflow of Horizontalprofiles on Instantaneouspoints that the Data that was sent by the Mapviewer-Interface take effect.
Tim Englich <tim.englich@intevation.de>
parents:
738
diff
changeset
|
1320 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1321 horizontalprofile_instantaneouspoint_surveyinfo = SELECT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1322 SURVEYID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1323 to_char(STARTDATE,'DD.MM.YYYY HH24:MI') || ' - '|| to_char(ENDDATE,'DD.MM.YYYY HH24:MI') || ' - '|| DESCRIPTION VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1324 FROM MEDIAN.SURVEYINFO \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1325 WHERE TRACKID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1326 ORDER BY STARTDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1327 ENDDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1328 DESCRIPTION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1329 horizontalprofile_instantaneouspoint_parameter = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1330 P.PARAMETERID KEY, \ |
356
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
1331 p.GERMANNAME || ' ['|| p.UNIT ||']' VALUE, \ |
3eee1369c79b
Added the Unit of the Parameter to the Query for Parameters in
Tim Englich <tim.englich@intevation.de>
parents:
352
diff
changeset
|
1332 p.GERMANNAME \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1333 FROM MEDIAN.PARAMETER P, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1334 MEDIAN.MEASUREMENT M, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1335 MEDIAN.INSTANTANEOUSPOINT IP, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1336 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1337 WHERE P.PARAMETERID = MSV.PARAMETERID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1338 MSV.MEASUREMENTID = M.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1339 M.FEATUREID = IP.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1340 IP.SURVEYID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1341 ORDER BY P.GERMANNAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1342 horizontalprofile_instantaneouspoint_depth = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1343 M.ZLOCATION KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1344 M.ZLOCATION VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1345 FROM MEDIAN.MEASUREMENT M, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1346 MEDIAN.INSTANTANEOUSPOINT IP \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1347 WHERE M.FEATUREID = IP.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1348 IP.SURVEYID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1349 ORDER BY M.ZLOCATION |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1350 horizontalprofile_instantaneouspoint_chart_data = SELECT ST_ASTEXT(SHAPE), \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1351 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE TIME, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1352 MSV.DATAVALUE YORDINATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1353 MSV.PARAMETERID GROUP1, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1354 ZLOCATION GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1355 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1356 3 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1357 MEDIAN.INSTANTANEOUSPOINT.SURVEYID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1358 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1359 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1360 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1361 WHERE MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1362 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1363 MEDIAN.INSTANTANEOUSPOINT.SURVEYID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1364 M.ZLOCATION IN (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1365 MSV.PARAMETERID in (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1366 ORDER BY MSV.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1367 M.ZLOCATION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1368 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1369 horizontalprofile_instantaneouspoint_odv_data = SELECT V.NAME || ' ' || C.NAME CRUISE, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1370 MEDIAN.InstantaneousPoint.FEATUREID STATION, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1371 '*' TYPE, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1372 0 BOTDEPTH, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1373 (M.ZLOCATION * -1) DEPTH, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1374 ST_ASTEXT(SHAPE), \ |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1375 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1376 MSV.DATAVALUE, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1377 MSV.PARAMETERID PARAMETER , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1378 '1' QF \ |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1379 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1380 MEDIAN.VEHICLE V, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1381 MEDIAN.CRUISE C, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1382 (SELECT TRACKID,CRUISEID FROM MEDIAN.TRACK) T, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1383 MEDIAN.SURVEYINFO S, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1384 MEDIAN.MEASUREMENT M, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1385 MEDIAN.MEASUREDSCALARVALUE MSV \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1386 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1387 C.CRUISEID = T.CRUISEID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1388 T.TRACKID = S.TRACKID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1389 S.SURVEYID = MEDIAN.INSTANTANEOUSPOINT.SURVEYID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1390 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1391 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1392 MEDIAN.INSTANTANEOUSPOINT.SURVEYID = ? AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1393 M.ZLOCATION IN (?) AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1394 MSV.PARAMETERID in (?) \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1395 ORDER BY MSV.PARAMETERID, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1396 M.ZLOCATION, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
1397 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1398 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1399 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1400 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1401 ########### Horizontalprofil MESH ########### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1402 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1403 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1404 horizontalprofile_meshpoint_depth = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1405 mp.KPOSITION KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1406 'Layer ' || ml.KPOSITION || ': ' || -ml.UPPERZLOCATION || ' - '|| -ml.LOWERZLOCATION VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1407 from MEDIAN.MESHLAYER ml, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1408 MEDIAN.MESHPOINT mp \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1409 where ml.KPOSITION = mp.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1410 ml.MESHID = mp.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1411 mp.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1412 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1413 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1414 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1415 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1416 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1417 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1418 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1419 order by mp.KPOSITION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1420 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1421 horizontalprofile_mesh_chart_data = SELECT ST_ASTEXT(SHAPE), \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1422 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1423 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1424 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1425 msv.TIMEVALUE GROUP3, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1426 MEDIAN.MESHPOINT.JPOSITION, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1427 MEDIAN.MESHPOINT.IPOSITION, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1428 2 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
1429 MEDIAN.MESHPOINT.MESHID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1430 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1431 MEDIAN.MESHPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1432 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1433 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1434 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1435 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1436 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1437 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1438 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1439 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1440 msv.PARAMETERID in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1441 msv.TIMEVALUE in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1442 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1443 MEDIAN.MESHPOINT.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1444 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1445 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1446 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1447 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1448 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1449 KPOSITION in ( ? ) and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1450 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1451 order by msv.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1452 MEDIAN.MESHPOINT.KPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1453 msv.PARAMETERID, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1454 MEDIAN.MESHPOINT.JPOSITION, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1455 MEDIAN.MESHPOINT.IPOSITION |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1456 |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1457 horizontalprofile_mesh_odv_data = SELECT SI.NAME CRUISE, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1458 m.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1459 '*' TYPE, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1460 ST_ASTEXT(SHAPE), \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1461 0 BOTDEPTH, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1462 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1463 msv.DATAVALUE, \ |
247
af474a541f74
Sort Columns to the given order of the ODV-Specification
Tim Englich <tim.englich@intevation.de>
parents:
246
diff
changeset
|
1464 msv.PARAMETERID PARAMETER, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1465 msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1466 MEDIAN.MESHPOINT.JPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1467 MEDIAN.MESHPOINT.IPOSITION , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1468 '1' QF \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1469 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1470 MEDIAN.MESHPOINT, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1471 MEDIAN.MESH m, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1472 MEDIAN.MESHSCALARVALUE msv, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1473 MEDIAN.SOURCEINFO SI \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1474 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1475 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1476 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1477 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1478 m.SOURCEID = SI.SOURCEID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1479 m.PARTIDMIN <= msv.PARTID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1480 m.PARTIDMAX >= msv.PARTID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1481 msv.PARAMETERID in (?) AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1482 msv.TIMEVALUE in (?) AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1483 m.OBJECTID = ? AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1484 MEDIAN.MESHPOINT.FEATUREID in \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1485 ( select FEATUREID \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1486 from MEDIAN.MESHPOINT mp, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1487 MEDIAN.MESH m \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1488 where m.OBJECTID = ? AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1489 mp.MESHID = m.MESHID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1490 KPOSITION in ( ? ) and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1491 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1492 order by msv.TIMEVALUE, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1493 MEDIAN.MESHPOINT.KPOSITION, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1494 MEDIAN.MESHPOINT.JPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1495 MEDIAN.MESHPOINT.IPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1496 msv.PARAMETERID |
1046
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1497 |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1498 ############################################# |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1499 ############################################# |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1500 ########### Horizontalprofil MESH ########### |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1501 ########### Vektordaten ########### |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1502 ############################################# |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1503 ############################################# |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1504 |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1505 horizontalprofile_mesh_chart_data_vector= SELECT ST_ASTEXT(SHAPE), \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1506 MVV.XCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1507 MVV.YCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1508 MVV.ZCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1509 MVV.SPEED, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1510 MVV.DIRECTION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1511 MVV.PARAMETERID GROUP1, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1512 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1513 MVV.TIMEVALUE GROUP3, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1514 MEDIAN.MESHPOINT.JPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1515 MEDIAN.MESHPOINT.IPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1516 2 DATAID, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1517 MEDIAN.MESHPOINT.MESHID \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1518 FROM MEDIAN.MESHLAYER ML, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1519 MEDIAN.MESHPOINT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1520 MEDIAN.MESH M, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1521 MEDIAN.MESHCURRENTVALUE MVV \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1522 WHERE MVV.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1523 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1524 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1525 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1526 M.PARTIDMIN <= MVV.PARTID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1527 M.PARTIDMAX >= MVV.PARTID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1528 MVV.PARAMETERID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1529 MVV.TIMEVALUE = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1530 M.OBJECTID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1531 MEDIAN.MESHPOINT.FEATUREID IN \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1532 ( SELECT FEATUREID \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1533 from MEDIAN.MESHPOINT MP, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1534 MEDIAN.MESH M \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1535 where M.OBJECTID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1536 MP.MESHID = M.MESHID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1537 KPOSITION IN ( ? ) AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1538 ? = (SELECT ? FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?)) \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1539 ORDER BY MVV.TIMEVALUE, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1540 MEDIAN.MESHPOINT.KPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1541 MVV.PARAMETERID, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1542 MEDIAN.MESHPOINT.JPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1543 MEDIAN.MESHPOINT.IPOSITION |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1544 |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1545 horizontalprofile_mesh_odv_data_vector= SELECT SI.NAME CRUISE, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1546 M.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1547 '*' TYPE, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1548 ST_ASTEXT(SHAPE), \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1549 0 BOTDEPTH, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1550 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1551 MVV.XCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1552 MVV.YCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1553 MVV.ZCOMPONENT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1554 MVV.SPEED, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1555 MVV.DIRECTION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1556 MVV.PARAMETERID PARAMETER, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1557 MVV.TIMEVALUE, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1558 MEDIAN.MESHPOINT.JPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1559 MEDIAN.MESHPOINT.IPOSITION , \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1560 '1' QF \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1561 from MEDIAN.MESHLAYER ML, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1562 MEDIAN.MESHPOINT, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1563 MEDIAN.MESH M, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1564 MEDIAN.MESHCURRENTVALUE MVV, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1565 MEDIAN.SOURCEINFO SI \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1566 where MVV.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1567 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1568 ML.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1569 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1570 M.SOURCEID = SI.SOURCEID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1571 M.PARTIDMIN <= MVV.PARTID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1572 M.PARTIDMAX >= MVV.PARTID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1573 MVV.PARAMETERID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1574 MVV.TIMEVALUE = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1575 M.OBJECTID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1576 MEDIAN.MESHPOINT.FEATUREID IN \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1577 ( SELECT FEATUREID \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1578 FROM MEDIAN.MESHPOINT MP, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1579 MEDIAN.MESH M \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1580 WHERE M.OBJECTID = ? AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1581 MP.MESHID = M.MESHID AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1582 KPOSITION IN ( ? ) AND \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1583 ? = (SELECT ? FROM MEDIAN.MESHPOINT WHERE FEATUREID = ?)) \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1584 ORDER BY MVV.TIMEVALUE, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1585 MEDIAN.MESHPOINT.KPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1586 MEDIAN.MESHPOINT.JPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1587 MEDIAN.MESHPOINT.IPOSITION, \ |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1588 MVV.PARAMETERID |
026f89df4091
Added queries for meshes using vectorvalues for horizontalprofiles.
Tim Englich <tim.englich@intevation.de>
parents:
1045
diff
changeset
|
1589 |
352
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1590 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1591 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1592 ########### Horizontalprofil MESH ########### |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1593 ########### Schnittprofil ########### |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1594 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1595 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1596 horizontalprofile_meshpoint_depth = SELECT DISTINCT \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1597 mp.KPOSITION KEY, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1598 'Layer ' || ml.KPOSITION || ': ' || -ml.UPPERZLOCATION || ' - '|| -ml.LOWERZLOCATION VALUE \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1599 from MEDIAN.MESHLAYER ml, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1600 MEDIAN.MESHPOINT mp \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1601 where ml.KPOSITION = mp.KPOSITION and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1602 ml.MESHID = mp.MESHID and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1603 mp.FEATUREID in \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1604 ( select FEATUREID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1605 from MEDIAN.MESHPOINT mp, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1606 MEDIAN.MESH m \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1607 where m.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1608 mp.MESHID = m.MESHID )\ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1609 order by mp.KPOSITION |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1610 |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1611 horizontalprofile_meshpoint_cross_ij=SELECT MEDIAN.MESHFACE.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1612 MEDIAN.MESHFACE.IPOSITION \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1613 FROM MEDIAN.MESHFACE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1614 MEDIAN.MESH M \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1615 WHERE MEDIAN.MESHFACE.KPOSITION = 1 AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1616 M.MESHID = MEDIAN.MESHFACE.MESHID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1617 M.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1618 INTERSECTS(SHAPE, "?") |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1619 horizontalprofile_mesh_cross_chart_data = SELECT ST_ASTEXT(SHAPE), \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1620 msv.DATAVALUE YORDINATE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1621 msv.PARAMETERID GROUP1, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1622 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1623 msv.TIMEVALUE GROUP3, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1624 MEDIAN.MESHPOINT.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1625 MEDIAN.MESHPOINT.IPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1626 2 DATAID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1627 from MEDIAN.MESHLAYER ml, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1628 MEDIAN.MESHPOINT, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1629 MEDIAN.MESH m, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1630 MEDIAN.MESHSCALARVALUE msv \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1631 where msv.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1632 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1633 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1634 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1635 m.PARTIDMIN <= msv.PARTID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1636 m.PARTIDMAX >= msv.PARTID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1637 msv.PARAMETERID in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1638 msv.TIMEVALUE in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1639 m.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1640 ml.KPOSITION in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1641 MEDIAN.MESHPOINT.FEATUREID in \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1642 ( \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1643 SELECT distinct FEATUREID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1644 FROM MEDIAN.MESHPOINT \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1645 WHERE ? \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1646 ) \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1647 order by msv.TIMEVALUE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1648 MEDIAN.MESHPOINT.KPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1649 msv.PARAMETERID, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1650 MEDIAN.MESHPOINT.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1651 MEDIAN.MESHPOINT.IPOSITION |
1047
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1652 |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1653 ############################################# |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1654 ############################################# |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1655 ########### Horizontalprofil MESH ########### |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1656 ########### Schnittprofil ########### |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1657 ########### Vektordaten ########### |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1658 ############################################# |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1659 ############################################# |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1660 |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1661 horizontalprofile_mesh_cross_chart_data_vector = SELECT ST_ASTEXT(SHAPE), \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1662 MVV.XCOMPONENT, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1663 MVV.YCOMPONENT, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1664 MVV.ZCOMPONENT, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1665 MVV.SPEED, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1666 MVV.DIRECTION, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1667 MVV.PARAMETERID GROUP1, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1668 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1669 MVV.TIMEVALUE GROUP3, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1670 MEDIAN.MESHPOINT.JPOSITION, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1671 MEDIAN.MESHPOINT.IPOSITION, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1672 2 DATAID \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1673 FROM MEDIAN.MESHLAYER ML, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1674 MEDIAN.MESHPOINT, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1675 MEDIAN.MESH M, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1676 MEDIAN.MESHCURRENTVALUE MVV \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1677 WHERE MVV.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1678 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1679 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1680 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1681 M.PARTIDMIN <= MVV.PARTID AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1682 M.PARTIDMAX >= MVV.PARTID AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1683 MVV.PARAMETERID = ? AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1684 MVV.TIMEVALUE = ? AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1685 M.OBJECTID = ? AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1686 ML.KPOSITION in (?) AND \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1687 MEDIAN.MESHPOINT.FEATUREID in \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1688 ( \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1689 SELECT DISTINCT FEATUREID \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1690 FROM MEDIAN.MESHPOINT \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1691 WHERE ? \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1692 ) \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1693 ORDER BY MVV.TIMEVALUE, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1694 MEDIAN.MESHPOINT.KPOSITION, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1695 MVV.PARAMETERID, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1696 MEDIAN.MESHPOINT.JPOSITION, \ |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1697 MEDIAN.MESHPOINT.IPOSITION |
05ab74539ed3
Added queries for meshes using vectorvalues for 'Horizontales Schnittprofil'
Tim Englich <tim.englich@intevation.de>
parents:
1046
diff
changeset
|
1698 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1699 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1700 ############################################# |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1701 ############# Profilschnitt MESH ############ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1702 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1703 ############################################# |
524
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1704 verticalcrosssection_mesh_year = select distinct \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1705 to_char(msv.TIMEVALUE,'YYYY') KEY, \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1706 to_char(msv.TIMEVALUE,'YYYY') VALUE \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1707 from MEDIAN.MESHSCALARVALUE msv, \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1708 MEDIAN.MESH m \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1709 where m.OBJECTID = ? AND \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1710 msv.PARTID >= m.PARTIDMIN AND \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1711 msv.PARTID <= m.PARTIDMAX AND \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1712 msv.PARAMETERID = ? \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1713 order by to_char(msv.TIMEVALUE,'YYYY') |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1714 verticalcrosssection_mesh_date = select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1715 msv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1716 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1717 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1718 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1719 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1720 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1721 msv.PARTID <= m.PARTIDMAX AND \ |
524
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1722 msv.PARAMETERID = ? AND \ |
d5a7608a4eea
Splitted data selection into two parts. Removed option to disable/enable data points in charts and exports.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
523
diff
changeset
|
1723 to_char(msv.TIMEVALUE,'YYYY') in (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1724 order by msv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1725 verticalcrosssection_mesh_chart_data = SELECT ST_ASTEXT(SHAPE), \ |
346
8f168e12a963
Added Z-Value to verticalcrosssection_mesh_chart_data.
Tim Englich <tim.englich@intevation.de>
parents:
338
diff
changeset
|
1726 ((ml.UPPERZLOCATION + ml.LOWERZLOCATION) / 2) Z, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1727 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1728 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1729 msv.TIMEVALUE GROUP2, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1730 MEDIAN.MESHPOINT.JPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1731 MEDIAN.MESHPOINT.IPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1732 MEDIAN.MESHPOINT.KPOSITION \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1733 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1734 MEDIAN.MESHPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1735 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1736 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1737 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1738 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1739 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1740 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1741 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1742 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1743 msv.PARAMETERID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1744 msv.TIMEVALUE = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1745 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1746 MEDIAN.MESHPOINT.FEATUREID in \ |
428
88cd37c3b5e4
Adjusted sql queries and configuration for verticalcrosssection products. Some code refactoring and improved error handling.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
370
diff
changeset
|
1747 ( \ |
88cd37c3b5e4
Adjusted sql queries and configuration for verticalcrosssection products. Some code refactoring and improved error handling.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
370
diff
changeset
|
1748 SELECT distinct FEATUREID \ |
88cd37c3b5e4
Adjusted sql queries and configuration for verticalcrosssection products. Some code refactoring and improved error handling.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
370
diff
changeset
|
1749 FROM MEDIAN.MESHPOINT \ |
88cd37c3b5e4
Adjusted sql queries and configuration for verticalcrosssection products. Some code refactoring and improved error handling.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
370
diff
changeset
|
1750 WHERE ? \ |
88cd37c3b5e4
Adjusted sql queries and configuration for verticalcrosssection products. Some code refactoring and improved error handling.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
370
diff
changeset
|
1751 ) \ |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1752 order by msv.TIMEVALUE, \ |
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1753 msv.PARAMETERID, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1754 MEDIAN.MESHPOINT.JPOSITION, \ |
205
6e7952fd1744
Added the support to Display the Time and the position of an Measurement in an VerticalProfile of Type Instantaneous Point
Tim Englich <tim.englich@intevation.de>
parents:
199
diff
changeset
|
1755 MEDIAN.MESHPOINT.IPOSITION, \ |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1756 MEDIAN.MESHPOINT.KPOSITION |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1757 |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1758 verticalcrosssection_mesh_odv_data = SELECT SI.NAME CRUISE, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1759 M.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1760 '*' TYPE, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1761 ST_ASTEXT(SHAPE), \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1762 0 BOTDEPTH, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1763 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1764 MSV.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1765 MSV.DATAVALUE, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1766 MSV.PARAMETERID PARAMETER, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1767 MEDIAN.MESHPOINT.JPOSITION, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1768 MEDIAN.MESHPOINT.IPOSITION, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1769 MEDIAN.MESHPOINT.KPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1770 2 DATAID , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1771 '1' QF \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1772 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1773 MEDIAN.MESHPOINT, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1774 MEDIAN.MESH m, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1775 MEDIAN.SOURCEINFO SI, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1776 MEDIAN.MESHSCALARVALUE msv \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1777 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1778 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1779 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1780 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1781 m.PARTIDMIN <= msv.PARTID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1782 m.PARTIDMAX >= msv.PARTID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1783 M.SOURCEID = SI.SOURCEID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1784 msv.PARAMETERID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1785 msv.TIMEVALUE = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1786 m.OBJECTID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1787 MEDIAN.MESHPOINT.FEATUREID in \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1788 ( select FEATUREID \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1789 from MEDIAN.MESHPOINT mp, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1790 MEDIAN.MESH m \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1791 where m.OBJECTID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1792 mp.MESHID = m.MESHID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1793 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1794 order by msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1795 MEDIAN.MESHPOINT.JPOSITION, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1796 MEDIAN.MESHPOINT.IPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1797 MEDIAN.MESHPOINT.KPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1798 msv.PARAMETERID |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1799 |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1800 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1801 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1802 ########## Horizontalschnitt MESH ########### |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1803 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1804 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1805 horizontalcrosssection_meshpoint_depth = SELECT DISTINCT MP.KPOSITION KEY, \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1806 'Layer ' || ML.KPOSITION || ': ' || -ML.UPPERZLOCATION || ' - '|| -ML.LOWERZLOCATION VALUE \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1807 from MEDIAN.MESHLAYER ML, \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1808 MEDIAN.MESHPOINT MP, \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1809 MEDIAN.MESH M \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1810 WHERE ML.KPOSITION = MP.KPOSITION AND \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1811 ML.MESHID = MP.MESHID AND \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1812 M.OBJECTID = ? AND \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1813 MP.MESHID = M.MESHID \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1814 ORDER BY MP.KPOSITION |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1815 |
532
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1816 horizontalcrosssection_mesh_year = select distinct \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1817 to_char(msv.TIMEVALUE,'YYYY') KEY, \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1818 to_char(msv.TIMEVALUE,'YYYY') VALUE \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1819 from MEDIAN.MESHSCALARVALUE msv, \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1820 MEDIAN.MESH m \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1821 where m.OBJECTID = ? AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1822 msv.PARTID >= m.PARTIDMIN AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1823 msv.PARTID <= m.PARTIDMAX AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1824 msv.PARAMETERID = ? \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1825 order by to_char(msv.TIMEVALUE,'YYYY') |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1826 horizontalcrosssection_mesh_date = select distinct \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1827 msv.TIMEVALUE KEY, \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1828 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1829 from MEDIAN.MESHSCALARVALUE msv, \ |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1830 MEDIAN.MESH m \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1831 where m.OBJECTID = ? AND \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1832 msv.PARTID >= m.PARTIDMIN AND \ |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1833 msv.PARTID <= m.PARTIDMAX AND \ |
532
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1834 msv.PARAMETERID = ? AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1835 to_char(msv.TIMEVALUE,'YYYY') in (?) \ |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1836 order by msv.TIMEVALUE |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1837 |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1838 horizontalcrosssection_mesh_data = SELECT ST_ASTEXT(SHAPE), \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1839 MSV.DATAVALUE YORDINATE, \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1840 MEDIAN.MESHPOINT.JPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1841 MEDIAN.MESHPOINT.IPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1842 MEDIAN.MESHPOINT.KPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1843 MSV.PARAMETERID, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1844 MSV.TIMEVALUE, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1845 2 DATAID \ |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1846 from MEDIAN.MESHLAYER ML, \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1847 MEDIAN.MESHPOINT, \ |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1848 MEDIAN.MESH M, \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1849 MEDIAN.MESHSCALARVALUE MSV \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1850 where MSV.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1851 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1852 ML.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1853 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1854 M.PARTIDMIN <= MSV.PARTID AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1855 M.PARTIDMAX >= MSV.PARTID AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1856 MSV.PARAMETERID = ? AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1857 MSV.TIMEVALUE = ? AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1858 M.OBJECTID = ? AND \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1859 MEDIAN.MESHPOINT.KPOSITION = ? \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1860 order by MEDIAN.MESHPOINT.JPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1861 MEDIAN.MESHPOINT.IPOSITION |
245
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1862 horizontalcrosssection_mesh_odv_data = SELECT SI.NAME CRUISE, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1863 M.MESHID || '-' || MEDIAN.MESHPOINT.IPOSITION || '-' || MEDIAN.MESHPOINT.JPOSITION STATION, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1864 '*' TYPE, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1865 ST_ASTEXT(SHAPE), \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1866 0 BOTDEPTH, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1867 (((ML.UPPERZLOCATION + ML.LOWERZLOCATION) / 2)*-1) DEPTH, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1868 MSV.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1869 MSV.DATAVALUE, \ |
245
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1870 MSV.PARAMETERID PARAMETER, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1871 MEDIAN.MESHPOINT.JPOSITION, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1872 MEDIAN.MESHPOINT.IPOSITION, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1873 MEDIAN.MESHPOINT.KPOSITION \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1874 from MEDIAN.MESHLAYER ML, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1875 MEDIAN.MESHPOINT, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1876 MEDIAN.MESH M, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1877 MEDIAN.SOURCEINFO SI, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1878 MEDIAN.MESHSCALARVALUE MSV \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1879 where MSV.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1880 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1881 ML.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1882 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1883 M.PARTIDMIN <= MSV.PARTID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1884 M.PARTIDMAX >= MSV.PARTID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1885 M.SOURCEID = SI.SOURCEID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1886 MSV.PARAMETERID = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1887 MSV.TIMEVALUE = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1888 M.OBJECTID = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1889 MEDIAN.MESHPOINT.KPOSITION = ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1890 order by MEDIAN.MESHPOINT.JPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1891 MEDIAN.MESHPOINT.IPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1892 MSV.PARAMETERID |
223
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1893 |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1894 area_filter = SELECT DISTINCT \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1895 FEATUREID KEY ,\ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1896 DESCRIPTION VALUE \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1897 FROM MEDIAN.FEATUREAREA \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1898 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1899 FEATUREID > 0 \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1900 ORDER BY FEATUREID |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1901 |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1902 subarea_filter = SELECT \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1903 FEATURECODE KEY, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1904 NAME VALUE \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1905 FROM MEDIAN.FEATUREAREA \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1906 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1907 FEATUREID = ? \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1908 ORDER BY NAME |
455
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1909 |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1910 rasterQuery = SELECT ST_ASTEXT(RASTER) \ |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1911 FROM MEDIAN.TOPO_WORLD_2MIN \ |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1912 WHERE INTERSECTS(RASTER, "?") |
604
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1913 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1914 mapviewer_interface_fis_region = SELECT ID_FIS \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1915 FROM MEDIAN.FEATUREAREA, \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1916 MEDIAN.FIS_HAS_REGION FHR \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1917 WHERE FHR.FEATUREID = MEDIAN.FEATUREAREA.FEATUREID AND \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1918 FHR.FEATURETYPE = MEDIAN.FEATUREAREA.FEATURETYPE AND \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1919 FHR.FEATURECODE = MEDIAN.FEATUREAREA.FEATURECODE AND \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1920 INTERSECTS(SHAPE,"?") |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1921 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1922 mapviewer_interface_mapservices_has_fis = SELECT DISTINCT ID_FIS, \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1923 ID_MAPSERVICE \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1924 FROM MEDIAN.FIS_HAS_MAPSERVICE \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1925 WHERE ID_MAPSERVICE IN (?) |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1926 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1927 mapviewer_interface_mapservices_has_parameter = SELECT DISTINCT ID_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1928 FROM MEDIAN.MAPSERVICE_HAS_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1929 WHERE ID_MAPSERVICE = ? |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1930 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1931 mapviewer_interface_mapservices_has_parameter_using_layer = SELECT DISTINCT ID_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1932 FROM MEDIAN.LAYER_HAS_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1933 WHERE ID_MAPSERVICE = ? AND \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1934 ID_LAYER IN (?) |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1935 |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1936 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1937 ############################################# |
799
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1938 # Layer Contis, Nauthis and Marinefeatures # |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1939 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1940 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1941 |
649
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1942 layer = SELECT ROW_ID KEY, \ |
754
5d45357dbc6d
ISSUE92: Integrated Column BAND for Query of Layers which belong to a FIS
Tim Englich <tim.englich@intevation.de>
parents:
749
diff
changeset
|
1943 TITLE || '-' || LAYER_NAME || '-' || BAND VALUE \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1944 FROM MEDIAN.LAYER_HAS_SUBTYPES \ |
833
8065295ae255
ISSUE200: Only Layer which contains Items should be displayed
Tim Englich <tim.englich@intevation.de>
parents:
799
diff
changeset
|
1945 WHERE ID_FEATURECLASS LIKE ? AND \ |
8065295ae255
ISSUE200: Only Layer which contains Items should be displayed
Tim Englich <tim.englich@intevation.de>
parents:
799
diff
changeset
|
1946 ITEMS > 0 \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1947 ORDER BY LAYER_NAME |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1948 |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1949 layer_request_data = SELECT ID_FEATURECLASS, \ |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1950 QUERY_STRING, \ |
1057
04967dc9c83f
The title of a layer can be changed by the user. Product 'Layer' and 'Horizontalschnitt' now use the same code path to write the meta information file. (issue198)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1047
diff
changeset
|
1951 ID_MAPSERVICE || '_' ||ID_LAYER, \ |
04967dc9c83f
The title of a layer can be changed by the user. Product 'Layer' and 'Horizontalschnitt' now use the same code path to write the meta information file. (issue198)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
1047
diff
changeset
|
1952 TITLE || '-' || LAYER_NAME || '-' || BAND VALUE \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1953 FROM MEDIAN.LAYER_HAS_SUBTYPES \ |
859
3fbabd4803d7
ISSUE252 Make it possible to export more than one Layer
Tim Englich <tim.englich@intevation.de>
parents:
844
diff
changeset
|
1954 WHERE ROW_ID IN (?) |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1955 |
728
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1956 layer_data = SELECT ST_ASTEXT(SHAPE), ? \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1957 FROM ? \ |
634
58c32df1a44d
Improved the describe document so that we are able to render a measurement-parameter-matrix with these data.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
616
diff
changeset
|
1958 WHERE ? |
649
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1959 |
728
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1960 layer_data_with_geom = SELECT ST_ASTEXT(SHAPE), ? \ |
649
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1961 FROM ? \ |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1962 WHERE ? AND \ |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1963 INTERSECTS(SHAPE,"?") |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1964 |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1965 geometry_for_subareafilter=SELECT st_astext(SHAPE) \ |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1966 FROM MEDIAN.FEATUREAREA \ |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1967 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
4fc97074eb90
Added Support for writing Shapefiles and Export them as an Zipfile for the Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
634
diff
changeset
|
1968 FEATURECODE = ? |
728
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1969 |
756
1614b27dcbfa
Added Support of Layers which are Joined from two Tables.
Tim Englich <tim.englich@intevation.de>
parents:
754
diff
changeset
|
1970 layer_colums= SELECT OWNER || '.' || TABLE_NAME || '.' || COLUMN_NAME \ |
728
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1971 FROM SDE.COLUMN_REGISTRY \ |
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1972 WHERE COLUMN_NAME NOT LIKE 'SHAPE' AND \ |
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1973 OWNER = '?' AND \ |
f6630d0203da
Put all Attributes of the Databasetables into the Shapefile which will be produced for the Product Layer
Tim Englich <tim.englich@intevation.de>
parents:
724
diff
changeset
|
1974 TABLE_NAME = '?' |
799
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1975 |
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1976 geometry_type = select geometry_type \ |
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1977 from sde.geometry_columns \ |
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1978 where f_table_schema = '?' and \ |
feeaf5aec552
ISSUE213: Wrong Geometrytype used for the generation of an Layer with Multipolygon-Geometries
Tim Englich <tim.englich@intevation.de>
parents:
776
diff
changeset
|
1979 f_table_name = '?' and \ |
844
74608c12b4fe
Added Query for the CacheCleaner that it use to determin which Tables has been updated.
Tim Englich <tim.englich@intevation.de>
parents:
833
diff
changeset
|
1980 f_geometry_column='SHAPE' |
1033
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1981 |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1982 |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1983 ############################################# |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1984 ############################################# |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1985 ###### Sync of cache after DB updates ####### |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1986 ############################################# |
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1987 ############################################# |
844
74608c12b4fe
Added Query for the CacheCleaner that it use to determin which Tables has been updated.
Tim Englich <tim.englich@intevation.de>
parents:
833
diff
changeset
|
1988 updated_tables = SELECT FULLTABLENAME \ |
74608c12b4fe
Added Query for the CacheCleaner that it use to determin which Tables has been updated.
Tim Englich <tim.englich@intevation.de>
parents:
833
diff
changeset
|
1989 FROM MEDIAN.LASTUPDATED \ |
1033
35c442410738
Added a comment after implementing cache cleaner
Hans Plum <hans.plum@intevation.de>
parents:
859
diff
changeset
|
1990 WHERE LASTUPDATE >= to_date('?', 'YYYY.MM.DD HH24:MI:SS') |