Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/doc/conf/queries.properties @ 789:0dc115cbef0d
Added javadoc for artifact package.
gnv-artifacts/trunk@871 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 31 Mar 2010 09:09:05 +0000 |
parents | cee3a0c22bb1 |
children | feeaf5aec552 |
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 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
128 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
129 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
130 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
131 ########## Zeitserie Mesh ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
132 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
133 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
134 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
135 timeseries_mesh = SELECT OBJECTID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
136 m.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
137 FROM MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
138 WHERE SOURCEID IN (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
139 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
|
140 timeseries_meshpoint = SELECT MEDIAN.MESHPOINT.FEATUREID, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
141 ST_ASTEXT(SHAPE) \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
142 FROM MEDIAN.MESHPOINT, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
143 MEDIAN.MESH M \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
144 WHERE MEDIAN.MESHPOINT.MESHID = M.MESHID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
145 KPOSITION = 1 AND \ |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
146 M.OBJECTID = ? AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
147 INTERSECTS(SHAPE,"?") |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
148 |
209
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
149 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
|
150 '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
|
151 from MEDIAN.MESHLAYER ML, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
152 MEDIAN.MESHPOINT MP, \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
153 MEDIAN.MESH M \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
154 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
|
155 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
|
156 M.OBJECTID = ? AND \ |
d5cef9f17525
gnv-artifacts/trunk@265 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents:
206
diff
changeset
|
157 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
|
158 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
|
159 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
|
160 ORDER BY ML.UPPERZLOCATION DESC |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
161 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
162 timeseries_mesh_parameter=SELECT distinct \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
163 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
|
164 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
|
165 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
166 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
167 MEDIAN.MESHSCALARVALUE msc, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
168 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
|
169 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
|
170 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
|
171 msc.PARTID <= m.PARTIDMAX AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
172 msc.PARAMETERID = p.PARAMETERID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
173 order by p.GERMANNAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
174 timeseries_mesh_interval=select /*+ parallel(TIMEVALUE,5) */ \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
175 min(TIMEVALUE) MIN, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
176 max(TIMEVALUE) MAX \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
177 from MEDIAN.MESHSCALARVALUE msc, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
178 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
179 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
180 msc.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
181 msc.PARTID <= m.PARTIDMAX AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
182 msc.PARAMETERID IN (?) |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
183 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
184 timeseries_mesh_chart_data=select /*+ parallel(timevalue,10) */ \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
185 msv.TIMEVALUE XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
186 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
187 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
188 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
|
189 mp.FEATUREID GROUP3, \ |
3dcd2b0b456e
Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45
Tim Englich <tim.englich@intevation.de>
parents:
216
diff
changeset
|
190 -1 GAPID \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
191 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
192 MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
193 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
194 where (m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
195 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
196 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
|
197 msv.FEATUREID = mp.FEATUREID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
198 msv.PARAMETERID in ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
199 mp.FEATUREID in ( ? ) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
200 msv.TIMEVALUE >= ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
201 msv.TIMEVALUE <= ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
202 order by mp.FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
203 msv.FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
204 msv.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
205 msv.TIMEVALUE |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
206 |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
207 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
|
208 SI.NAME CRUISE, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
209 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
|
210 '*' TYPE, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
211 ST_ASTEXT(SHAPE), \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
212 0 BOTDEPTH, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
213 (((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
|
214 msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
215 msv.DATAVALUE, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
216 msv.PARAMETERID PARAMETER, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
217 '1' QF \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
218 from MEDIAN.MESHSCALARVALUE msv, \ |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
219 MEDIAN.MESHPOINT, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
220 MEDIAN.MESH m, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
221 MEDIAN.SOURCEINFO SI, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
222 MEDIAN.MESHLAYER ML \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
223 where (m.OBJECTID = ? AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
224 msv.PARTID >= m.PARTIDMIN AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
225 msv.PARTID <= m.PARTIDMAX ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
226 m.SOURCEID = SI.SOURCEID AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
227 ML.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
228 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
|
229 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
|
230 msv.PARAMETERID in (? ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
231 MEDIAN.MESHPOINT.FEATUREID in ( ? ) AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
232 msv.TIMEVALUE >= ? AND \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
233 msv.TIMEVALUE <= ? \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
234 order by MEDIAN.MESHPOINT.FEATUREID, \ |
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
235 msv.FEATUREID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
236 msv.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
237 msv.PARAMETERID |
240
76897b73db4e
Added ODV-Export-Support to TimeSeries Mesh
Tim Englich <tim.englich@intevation.de>
parents:
237
diff
changeset
|
238 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
239 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
240 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
241 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
242 ########## Vertikalprofil ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
243 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
244 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
245 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
246 verticalprofile_point=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
247 tsp.FEATUREID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
248 tsp.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
249 FROM MEDIAN.TIMESERIESPOINT tsp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
250 MEDIAN.MEASUREMENT mmt \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
251 WHERE tsp.FEATUREID = mmt.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
252 mmt.SOURCEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
253 order by tsp.name |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
254 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
255 verticalprofile_parameter=SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
256 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
|
257 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
|
258 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
259 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
260 MEDIAN.TIMESERIES ts, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
261 MEDIAN.TIMESERIESVALUE tsv, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
262 MEDIAN.MEASUREMENT m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
263 where ts.PARAMETERID = p.PARAMETERID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
264 ts.TIMESERIESID = tsv.TIMESERIESID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
265 m.MEASUREMENTID = tsv.MEASUREMENTID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
266 m.FEATUREID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
267 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
|
268 |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
269 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
|
270 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
|
271 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
|
272 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
|
273 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
|
274 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
|
275 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
|
276 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
|
277 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
|
278 |
469
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
279 |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
280 verticalprofile_year=select distinct \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
281 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
|
282 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
|
283 from MEDIAN.TIMESERIES ts, \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
284 MEDIAN.TIMESERIESVALUE tsv, \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
285 MEDIAN.MEASUREMENT m \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
286 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
|
287 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
|
288 m.FEATUREID = ? and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
289 ts.PARAMETERID IN ( ? ) \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
290 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
|
291 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
292 verticalprofile_date=select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
293 tsv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
294 tsv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
295 from MEDIAN.TIMESERIES ts, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
296 MEDIAN.TIMESERIESVALUE tsv, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
297 MEDIAN.MEASUREMENT m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
298 where ts.TIMESERIESID = tsv.TIMESERIESID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
299 m.MEASUREMENTID = tsv.MEASUREMENTID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
300 m.FEATUREID = ? and \ |
469
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
301 ts.PARAMETERID IN ( ? ) and \ |
62fc63d0f71d
Added a new State in Product Verticalprofile in Timeseriespoints.
Tim Englich <tim.englich@intevation.de>
parents:
455
diff
changeset
|
302 to_char(tsv.TIMEVALUE,'YYYY') IN (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
303 order by tsv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
304 |
211
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
305 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
|
306 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
|
307 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
|
308 TSV.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
309 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
310 1 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
311 M.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
312 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
|
313 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
|
314 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
|
315 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
|
316 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
|
317 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
|
318 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
|
319 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
|
320 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
|
321 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
|
322 M.ZLOCATION <= ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
323 ORDER BY TSV.TIMEVALUE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
324 TSV.TIMESERIESID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
325 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
|
326 TSV.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
327 |
237
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
328 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
|
329 MEDIAN.TIMESERIESPOINT.NAME STATION, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
330 '*' TYPE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
331 ST_ASTEXT(SHAPE), \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
332 0 BOTDEPTH, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
333 (M.ZLOCATION *-1) DEPTH, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
334 TSV.TIMEVALUE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
335 TSV.DATAVALUE, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
336 TS.PARAMETERID PARAMETER, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
337 TSV.MEASUREMENTID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
338 TSV.TIMESERIESID, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
339 '1' QF \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
340 FROM MEDIAN.TIMESERIESPOINT, \ |
237
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
341 MEDIAN.TIMESERIESVALUE TSV, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
342 MEDIAN.TIMESERIES TS, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
343 MEDIAN.MEASUREMENT M, \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
344 MEDIAN.SOURCEINFO SI \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
345 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
|
346 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
|
347 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
|
348 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
|
349 M.FEATUREID = ? AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
350 TS.PARAMETERID IN ( ? ) AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
351 TSV.TIMEVALUE IN (?) AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
352 M.ZLOCATION >= ? AND \ |
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
353 M.ZLOCATION <= ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
354 ORDER BY TSV.MEASUREMENTID, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
355 TSV.TIMESERIESID, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
356 TSV.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
357 TS.PARAMETERID |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
358 |
237
56dcedc4a96c
Added SQL-Statement for ODV-Exports on Verticalprofiles TimeSeriesPoints
Tim Englich <tim.englich@intevation.de>
parents:
232
diff
changeset
|
359 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
360 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
361 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
362 ########## Vertikalprofil Mesh ############## |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
363 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
364 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
365 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
366 verticalprofile_mesh = SELECT OBJECTID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
367 m.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
368 FROM MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
369 WHERE SOURCEID IN (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
370 order by m.NAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
371 |
223
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
372 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
|
373 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
|
374 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
|
375 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
|
376 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
|
377 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
|
378 INTERSECTS(SHAPE, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
379 (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
|
380 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
|
381 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
|
382 FEATURECODE = ? )\ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
383 ) \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
384 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
|
385 |
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
|
386 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
|
387 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
|
388 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
|
389 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
|
390 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
|
391 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
|
392 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
|
393 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
|
394 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
395 verticalprofile_mesh_point = SELECT FEATUREID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
396 ST_ASTEXT(SHAPE) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
397 FROM MEDIAN.MESHPOINT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
398 WHERE MESHID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
399 (SELECT DISTINCT MESHID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
400 FROM MEDIAN.MESH \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
401 WHERE OBJECTID = ?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
402 KPOSITION = 1 AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
403 INTERSECTS(SHAPE,"?") |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
404 |
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
|
405 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
|
406 '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
|
407 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
|
408 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
|
409 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
|
410 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
|
411 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
|
412 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
|
413 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
|
414 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
|
415 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
|
416 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
|
417 |
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
|
418 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
|
419 '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
|
420 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
|
421 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
|
422 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
|
423 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
|
424 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
|
425 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
|
426 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
|
427 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
|
428 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
|
429 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
|
430 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
|
431 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
432 verticalprofile_mesh_parameter=SELECT distinct \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
433 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
|
434 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
|
435 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
436 from MEDIAN.PARAMETER p, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
437 MEDIAN.MESHSCALARVALUE msc, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
438 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
439 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
|
440 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
|
441 msc.PARTID <= m.PARTIDMAX AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
442 msc.PARAMETERID = p.PARAMETERID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
443 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
|
444 |
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
|
445 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
|
446 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
|
447 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
|
448 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
|
449 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
|
450 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
|
451 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
|
452 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
|
453 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
|
454 order by to_char(msv.TIMEVALUE, 'YYYY') |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
455 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
456 verticalprofile_mesh_date= select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
457 msv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
458 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
459 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
460 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
461 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
462 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
463 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
|
464 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
|
465 to_char(msv.TIMEVALUE,'YYYY') in (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
466 order by msv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
467 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
468 verticalprofile_mesh_chart_data=select ml.UPPERZLOCATION XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
469 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
|
470 mp.KPOSITION KPOSITION, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
471 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
472 msv.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
473 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
474 2 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
475 MP.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
476 MP.MESHID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
477 from MEDIAN.MESHLAYER ml, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
478 MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
479 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
480 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
481 where msv.FEATUREID = mp. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
482 ml.KPOSITION = mp.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
483 ml.MESHID = mp.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
484 m.MESHID = mp.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
485 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
486 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
487 msv.PARAMETERID in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
488 msv.TIMEVALUE in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
489 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
490 mp.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
491 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
492 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
493 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
494 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
495 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
496 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
|
497 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
|
498 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
|
499 mp.KPOSITION >= ? \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
500 order by msv.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
501 msv.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
502 ml.UPPERZLOCATION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
503 |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
504 verticalprofile_mesh_odv_data=select SI.NAME CRUISE, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
505 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
|
506 '*' TYPE, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
507 ST_ASTEXT(SHAPE), \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
508 0 BOTDEPTH, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
509 (((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
|
510 msv.DATAVALUE, \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
511 msv.PARAMETERID PARAMETER, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
512 msv.TIMEVALUE , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
513 '1' QF \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
514 from MEDIAN.MESHLAYER ml, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
515 MEDIAN.MESHPOINT, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
516 MEDIAN.MESH m, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
517 MEDIAN.MESHSCALARVALUE msv, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
518 MEDIAN.SOURCEINFO SI \ |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
519 where m.SOURCEID = SI.SOURCEID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
520 msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
521 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
522 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
523 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
524 m.PARTIDMIN <= msv.PARTID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
525 m.PARTIDMAX >= msv.PARTID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
526 msv.PARAMETERID in (?) AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
527 msv.TIMEVALUE in (?) AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
528 m.OBJECTID = ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
529 MEDIAN.MESHPOINT.FEATUREID in \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
530 ( select FEATUREID \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
531 from MEDIAN.MESHPOINT mp, \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
532 MEDIAN.MESH m \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
533 where m.OBJECTID = ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
534 mp.MESHID = m.MESHID AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
535 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
|
536 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
|
537 MEDIAN.MESHPOINT.KPOSITION <= ? AND \ |
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
538 MEDIAN.MESHPOINT.KPOSITION >= ? \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
539 order by msv.TIMEVALUE, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
540 ml.UPPERZLOCATION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
541 msv.PARAMETERID |
241
8500529d82af
Added ODV-Export to VerticalProfiles
Tim Englich <tim.englich@intevation.de>
parents:
240
diff
changeset
|
542 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
543 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
544 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
545 ##### Vertikalprofil InstantaneousPoint ##### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
546 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
547 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
548 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
549 verticalprofile_instantaneouspoint_series = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
550 S.SERIESID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
551 S.DESCRIPTION VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
552 FROM MEDIAN.SERIES S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
553 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
554 MEDIAN.MEASUREMENT M \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
555 WHERE S.SERIESID = I.SERIESID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
556 I.POINTSPEC = 4 AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
557 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
558 M.SOURCEID= ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
559 ORDER BY S.DESCRIPTION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
560 |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
561 verticalprofile_instantaneouspoint_series_with_area = SELECT \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
562 S.SERIESID KEY, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
563 S.DESCRIPTION VALUE \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
564 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
565 MEDIAN.SERIES S, \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
566 MEDIAN.MEASUREMENT M \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
567 WHERE S.SERIESID = MEDIAN.INSTANTANEOUSPOINT.SERIESID AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
568 MEDIAN.INSTANTANEOUSPOINT.POINTSPEC = 4 AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
569 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
570 M.SOURCEID= ? AND \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
571 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
|
572 (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
|
573 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
|
574 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
|
575 FEATURECODE = ? )\ |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
576 ) \ |
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
577 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
|
578 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
|
579 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
|
580 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
|
581 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
|
582 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
|
583 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
|
584 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
|
585 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
|
586 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
|
587 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
|
588 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
|
589 ORDER BY S.DESCRIPTION |
325
3eff9241ea1e
Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents:
319
diff
changeset
|
590 |
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
|
591 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
|
592 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
|
593 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
|
594 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
|
595 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
|
596 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
597 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
|
598 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
|
599 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
|
600 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
601 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
|
602 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
|
603 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
604 |
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
|
605 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
|
606 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
|
607 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
|
608 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
|
609 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
|
610 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
|
611 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
|
612 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
|
613 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
|
614 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
|
615 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
|
616 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
|
617 (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
|
618 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
|
619 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
|
620 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
|
621 ) \ |
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
|
622 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
|
623 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
|
624 |
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
|
625 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
|
626 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
|
627 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
|
628 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
|
629 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
|
630 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
|
631 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
|
632 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
|
633 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
|
634 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
|
635 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
|
636 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
|
637 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
|
638 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
|
639 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
640 verticalprofile_instantaneouspoint_parameter = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
641 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
|
642 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
|
643 p.GERMANNAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
644 FROM MEDIAN.PARAMETER P, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
645 MEDIAN.INSTANTANEOUSPOINT IP, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
646 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
647 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
648 WHERE IP.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
649 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
650 MSV.PARAMETERID = P.PARAMETERID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
651 IP.FEATUREID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
652 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
|
653 |
310874d3573f
Minimum and Maximum Depth should be entered by the User issue31
Tim Englich <tim.englich@intevation.de>
parents:
209
diff
changeset
|
654 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
|
655 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
|
656 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
|
657 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
|
658 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
|
659 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
|
660 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
|
661 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
|
662 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
|
663 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
664 verticalprofile_instantaneouspoint_chart_data = SELECT M.ZLOCATION XORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
665 MSV.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
666 MSV.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
667 IP.TIMEVALUE GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
668 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
669 3 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
670 IP.FEATUREID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
671 IP.SERIESID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
672 FROM MEDIAN.INSTANTANEOUSPOINT IP, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
673 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
674 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
675 WHERE IP.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
676 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
677 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
|
678 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
|
679 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
|
680 M.ZLOCATION <= ? \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
681 ORDER BY IP.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
682 MSV.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
683 M.ZLOCATION |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
684 |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
685 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
|
686 MEDIAN.INSTANTANEOUSPOINT.FEATUREID STATION, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
687 '*' TYPE, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
688 ST_ASTEXT(SHAPE), \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
689 0 BOTDEPTH, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
690 (M.ZLOCATION * -1) DEPTH, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
691 MSV.DATAVALUE, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
692 MSV.PARAMETERID PARAMETER, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
693 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
694 '1' QF \ |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
695 FROM MEDIAN.SERIES S, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
696 MEDIAN.INSTANTANEOUSPOINT, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
697 MEDIAN.MEASUREMENT M, \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
698 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
699 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
|
700 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
701 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
702 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = ? AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
703 MSV.PARAMETERID in (?) AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
704 M.ZLOCATION >= ? AND \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
705 M.ZLOCATION <= ? \ |
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
706 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
|
707 M.ZLOCATION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
708 MSV.PARAMETERID |
243
b599de3db552
Added ODV-Export to VerticalProfiles in InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
242
diff
changeset
|
709 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
710 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
711 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
712 #### Horizontalprofil InstantaneousPoint #### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
713 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
714 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
715 horizontalprofile_instantaneouspoint_vehicle = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
716 V.VEHICLEID KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
717 V.NAME VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
718 FROM MEDIAN.VEHICLE V, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
719 MEDIAN.CRUISE C, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
720 MEDIAN.TRACK T, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
721 MEDIAN.SURVEYINFO S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
722 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
723 MEDIAN.MEASUREMENT M \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
724 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
725 C.CRUISEID = T.CRUISEID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
726 T.TRACKID = S.TRACKID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
727 S.SURVEYID = I.SURVEYID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
728 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
729 M.SOURCEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
730 ORDER BY V.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
731 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
732 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
|
733 V.NAME VALUE \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
734 FROM MEDIAN.TRACK, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
735 MEDIAN.VEHICLE V, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
736 MEDIAN.CRUISE C \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
737 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
738 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
739 MEDIAN.TRACK.TRACKID IN \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
740 (SELECT DISTINCT S.TRACKID \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
741 FROM MEDIAN.MEASUREMENT M ,\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
742 MEDIAN.INSTANTANEOUSPOINT I, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
743 MEDIAN.SURVEYINFO S \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
744 WHERE M.SOURCEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
745 I.FEATUREID = M.FEATUREID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
746 S.SURVEYID = I.SURVEYID)AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
747 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
748 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
749 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
750 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
751 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
752 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
753 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
|
754 |
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
|
755 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
|
756 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
|
757 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
|
758 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
|
759 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
|
760 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
|
761 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
|
762 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
|
763 (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
|
764 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
|
765 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
|
766 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
|
767 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
|
768 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
|
769 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
|
770 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
|
771 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
|
772 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
773 horizontalprofile_instantaneouspoint_cruise = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
774 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
|
775 V.NAME || ' ' || \ |
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
776 C.NAME || ' ' || \ |
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
777 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
|
778 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
|
779 V.NAME, \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
780 C.NAME \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
781 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
|
782 MEDIAN.VEHICLE V, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
783 MEDIAN.TRACK T, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
784 MEDIAN.SURVEYINFO S, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
785 MEDIAN.INSTANTANEOUSPOINT I, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
786 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
|
787 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
|
788 C.CRUISEID = T.CRUISEID AND \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
789 T.TRACKID = S.TRACKID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
790 S.SURVEYID = I.SURVEYID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
791 I.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
792 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
|
793 M.SOURCEID = ? \ |
206
01ac348ac4a4
Optimized Query horizontalprofile_instantaneouspoint_cruise because it is not warranted
Tim Englich <tim.englich@intevation.de>
parents:
205
diff
changeset
|
794 ORDER BY V.NAME, C.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
795 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
796 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
|
797 V.NAME || ' ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
798 C.NAME || ' ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
799 TO_CHAR(C.STARTDATE,'DD.MM.YYYY') || ' - ' || \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
800 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
|
801 V.NAME, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
802 C.NAME \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
803 FROM MEDIAN.TRACK, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
804 MEDIAN.VEHICLE V, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
805 MEDIAN.CRUISE C \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
806 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
807 C.CRUISEID = MEDIAN.TRACK.CRUISEID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
808 MEDIAN.TRACK.TRACKID IN \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
809 (SELECT DISTINCT S.TRACKID \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
810 FROM MEDIAN.MEASUREMENT M ,\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
811 MEDIAN.INSTANTANEOUSPOINT I, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
812 MEDIAN.SURVEYINFO S \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
813 WHERE M.SOURCEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
814 C.VEHICLEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
815 I.FEATUREID = M.FEATUREID AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
816 S.SURVEYID = I.SURVEYID)AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
817 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
818 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
819 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
820 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
821 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
822 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
823 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
|
824 |
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
|
825 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
|
826 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
|
827 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
|
828 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
|
829 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
|
830 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
|
831 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
|
832 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
|
833 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
|
834 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
|
835 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
|
836 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
|
837 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
|
838 (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
|
839 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
|
840 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
|
841 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
|
842 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
|
843 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
|
844 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
|
845 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
|
846 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
|
847 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
|
848 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
849 horizontalprofile_instantaneouspoint_track= SELECT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
850 T.TRACKID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
851 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
|
852 FROM MEDIAN.TRACK T \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
853 WHERE T.CRUISEID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
854 ORDER BY T.STARTDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
855 T.ENDDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
856 T.NAME |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
857 |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
858 horizontalprofile_instantaneouspoint_track_with_area = SELECT \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
859 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
|
860 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
|
861 NAME \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
862 FROM MEDIAN.TRACK \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
863 WHERE MEDIAN.TRACK.CRUISEID = ? AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
864 INTERSECTS(SHAPE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
865 (SELECT st_astext(SHAPE) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
866 FROM MEDIAN.FEATUREAREA \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
867 WHERE (FEATURETYPE = 7 OR FEATURETYPE = 8) AND \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
868 FEATURECODE = ? )\ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
869 ) \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
870 ORDER BY STARTDATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
871 ENDDATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
872 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
|
873 |
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
|
874 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
|
875 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
|
876 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
|
877 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
|
878 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
|
879 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
|
880 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
|
881 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
|
882 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
|
883 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
|
884 |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
885 horizontalprofile_instantaneouspoint_surveyinfo = SELECT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
886 SURVEYID KEY, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
887 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
|
888 FROM MEDIAN.SURVEYINFO \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
889 WHERE TRACKID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
890 ORDER BY STARTDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
891 ENDDATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
892 DESCRIPTION |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
893 horizontalprofile_instantaneouspoint_parameter = SELECT DISTINCT \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
894 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
|
895 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
|
896 p.GERMANNAME \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
897 FROM MEDIAN.PARAMETER P, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
898 MEDIAN.MEASUREMENT M, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
899 MEDIAN.INSTANTANEOUSPOINT IP, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
900 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
901 WHERE P.PARAMETERID = MSV.PARAMETERID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
902 MSV.MEASUREMENTID = M.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
903 M.FEATUREID = IP.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
904 IP.SURVEYID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
905 ORDER BY P.GERMANNAME |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
906 horizontalprofile_instantaneouspoint_depth = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
907 M.ZLOCATION KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
908 M.ZLOCATION VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
909 FROM MEDIAN.MEASUREMENT M, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
910 MEDIAN.INSTANTANEOUSPOINT IP \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
911 WHERE M.FEATUREID = IP.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
912 IP.SURVEYID = ? \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
913 ORDER BY M.ZLOCATION |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
914 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
|
915 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE TIME, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
916 MSV.DATAVALUE YORDINATE, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
917 MSV.PARAMETERID GROUP1, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
918 ZLOCATION GROUP2, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
919 1 GROUP3, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
920 3 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
921 MEDIAN.INSTANTANEOUSPOINT.SURVEYID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
922 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
923 MEDIAN.MEASUREMENT M, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
924 MEDIAN.MEASUREDSCALARVALUE MSV \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
925 WHERE MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
926 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
927 MEDIAN.INSTANTANEOUSPOINT.SURVEYID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
928 M.ZLOCATION IN (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
929 MSV.PARAMETERID in (?) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
930 ORDER BY MSV.PARAMETERID, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
931 M.ZLOCATION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
932 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
933 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
|
934 MEDIAN.InstantaneousPoint.FEATUREID STATION, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
935 '*' TYPE, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
936 0 BOTDEPTH, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
937 (M.ZLOCATION * -1) DEPTH, \ |
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
938 ST_ASTEXT(SHAPE), \ |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
939 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
940 MSV.DATAVALUE, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
941 MSV.PARAMETERID PARAMETER , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
942 '1' QF \ |
244
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
943 FROM MEDIAN.INSTANTANEOUSPOINT, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
944 MEDIAN.VEHICLE V, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
945 MEDIAN.CRUISE C, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
946 (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
|
947 MEDIAN.SURVEYINFO S, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
948 MEDIAN.MEASUREMENT M, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
949 MEDIAN.MEASUREDSCALARVALUE MSV \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
950 WHERE V.VEHICLEID = C.VEHICLEID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
951 C.CRUISEID = T.CRUISEID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
952 T.TRACKID = S.TRACKID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
953 S.SURVEYID = MEDIAN.INSTANTANEOUSPOINT.SURVEYID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
954 MEDIAN.INSTANTANEOUSPOINT.FEATUREID = M.FEATUREID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
955 M.MEASUREMENTID = MSV.MEASUREMENTID AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
956 MEDIAN.INSTANTANEOUSPOINT.SURVEYID = ? AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
957 M.ZLOCATION IN (?) AND \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
958 MSV.PARAMETERID in (?) \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
959 ORDER BY MSV.PARAMETERID, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
960 M.ZLOCATION, \ |
9048bc4b17cd
Added ODV-Export to HorizontalProfiles on InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
243
diff
changeset
|
961 MEDIAN.INSTANTANEOUSPOINT.TIMEVALUE |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
962 |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
963 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
964 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
965 ########### Horizontalprofil MESH ########### |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
966 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
967 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
968 horizontalprofile_meshpoint_depth = SELECT DISTINCT \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
969 mp.KPOSITION KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
970 'Layer ' || ml.KPOSITION || ': ' || -ml.UPPERZLOCATION || ' - '|| -ml.LOWERZLOCATION VALUE \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
971 from MEDIAN.MESHLAYER ml, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
972 MEDIAN.MESHPOINT mp \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
973 where ml.KPOSITION = mp.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
974 ml.MESHID = mp.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
975 mp.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
976 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
977 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
978 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
979 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
980 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
981 IPOSITION = (select IPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?) and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
982 JPOSITION = (select JPOSITION from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
983 order by mp.KPOSITION |
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 horizontalprofile_mesh_chart_data = SELECT ST_ASTEXT(SHAPE), \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
986 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
987 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
988 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
989 msv.TIMEVALUE GROUP3, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
990 MEDIAN.MESHPOINT.JPOSITION, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
991 MEDIAN.MESHPOINT.IPOSITION, \ |
762
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
992 2 DATAID, \ |
b3f922908a31
ISSUE122: Added all required Columns for the CSV-Export.
Tim Englich <tim.englich@intevation.de>
parents:
756
diff
changeset
|
993 MEDIAN.MESHPOINT.MESHID \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
994 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
995 MEDIAN.MESHPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
996 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
997 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
998 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
999 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1000 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1001 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1002 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1003 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1004 msv.PARAMETERID in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1005 msv.TIMEVALUE in (?) AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1006 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1007 MEDIAN.MESHPOINT.FEATUREID in \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1008 ( select FEATUREID \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1009 from MEDIAN.MESHPOINT mp, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1010 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1011 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1012 mp.MESHID = m.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1013 KPOSITION in ( ? ) and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1014 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1015 order by msv.TIMEVALUE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1016 MEDIAN.MESHPOINT.KPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1017 msv.PARAMETERID, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1018 MEDIAN.MESHPOINT.JPOSITION, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1019 MEDIAN.MESHPOINT.IPOSITION |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1020 |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1021 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
|
1022 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
|
1023 '*' TYPE, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1024 ST_ASTEXT(SHAPE), \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1025 0 BOTDEPTH, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1026 (((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
|
1027 msv.DATAVALUE, \ |
247
af474a541f74
Sort Columns to the given order of the ODV-Specification
Tim Englich <tim.englich@intevation.de>
parents:
246
diff
changeset
|
1028 msv.PARAMETERID PARAMETER, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1029 msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1030 MEDIAN.MESHPOINT.JPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1031 MEDIAN.MESHPOINT.IPOSITION , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1032 '1' QF \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1033 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1034 MEDIAN.MESHPOINT, \ |
242
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1035 MEDIAN.MESH m, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1036 MEDIAN.MESHSCALARVALUE msv, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1037 MEDIAN.SOURCEINFO SI \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1038 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
|
1039 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1040 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1041 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1042 m.SOURCEID = SI.SOURCEID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1043 m.PARTIDMIN <= msv.PARTID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1044 m.PARTIDMAX >= msv.PARTID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1045 msv.PARAMETERID in (?) AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1046 msv.TIMEVALUE in (?) AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1047 m.OBJECTID = ? AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1048 MEDIAN.MESHPOINT.FEATUREID in \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1049 ( select FEATUREID \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1050 from MEDIAN.MESHPOINT mp, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1051 MEDIAN.MESH m \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1052 where m.OBJECTID = ? AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1053 mp.MESHID = m.MESHID AND \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1054 KPOSITION in ( ? ) and \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1055 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1056 order by msv.TIMEVALUE, \ |
5925739d25ac
Added ODV-Export to HorizontalProfiles in Meshes
Tim Englich <tim.englich@intevation.de>
parents:
241
diff
changeset
|
1057 MEDIAN.MESHPOINT.KPOSITION, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1058 MEDIAN.MESHPOINT.JPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1059 MEDIAN.MESHPOINT.IPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1060 msv.PARAMETERID |
352
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1061 |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1062 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1063 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1064 ########### Horizontalprofil MESH ########### |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1065 ########### Schnittprofil ########### |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1066 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1067 ############################################# |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1068 horizontalprofile_meshpoint_depth = SELECT DISTINCT \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1069 mp.KPOSITION KEY, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1070 'Layer ' || ml.KPOSITION || ': ' || -ml.UPPERZLOCATION || ' - '|| -ml.LOWERZLOCATION VALUE \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1071 from MEDIAN.MESHLAYER ml, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1072 MEDIAN.MESHPOINT mp \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1073 where ml.KPOSITION = mp.KPOSITION and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1074 ml.MESHID = mp.MESHID and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1075 mp.FEATUREID in \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1076 ( select FEATUREID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1077 from MEDIAN.MESHPOINT mp, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1078 MEDIAN.MESH m \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1079 where m.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1080 mp.MESHID = m.MESHID )\ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1081 order by mp.KPOSITION |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1082 |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1083 horizontalprofile_meshpoint_cross_ij=SELECT MEDIAN.MESHFACE.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1084 MEDIAN.MESHFACE.IPOSITION \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1085 FROM MEDIAN.MESHFACE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1086 MEDIAN.MESH M \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1087 WHERE MEDIAN.MESHFACE.KPOSITION = 1 AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1088 M.MESHID = MEDIAN.MESHFACE.MESHID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1089 M.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1090 INTERSECTS(SHAPE, "?") |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1091 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
|
1092 msv.DATAVALUE YORDINATE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1093 msv.PARAMETERID GROUP1, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1094 MEDIAN.MESHPOINT.KPOSITION GROUP2, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1095 msv.TIMEVALUE GROUP3, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1096 MEDIAN.MESHPOINT.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1097 MEDIAN.MESHPOINT.IPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1098 2 DATAID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1099 from MEDIAN.MESHLAYER ml, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1100 MEDIAN.MESHPOINT, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1101 MEDIAN.MESH m, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1102 MEDIAN.MESHSCALARVALUE msv \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1103 where msv.FEATUREID = MEDIAN.MESHPOINT.FEATUREID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1104 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1105 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1106 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1107 m.PARTIDMIN <= msv.PARTID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1108 m.PARTIDMAX >= msv.PARTID AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1109 msv.PARAMETERID in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1110 msv.TIMEVALUE in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1111 m.OBJECTID = ? AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1112 ml.KPOSITION in (?) AND \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1113 MEDIAN.MESHPOINT.FEATUREID in \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1114 ( \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1115 SELECT distinct FEATUREID \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1116 FROM MEDIAN.MESHPOINT \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1117 WHERE ? \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1118 ) \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1119 order by msv.TIMEVALUE, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1120 MEDIAN.MESHPOINT.KPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1121 msv.PARAMETERID, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1122 MEDIAN.MESHPOINT.JPOSITION, \ |
24c21a720aa5
Added Support for "horizontale Schnittprofile"
Tim Englich <tim.englich@intevation.de>
parents:
346
diff
changeset
|
1123 MEDIAN.MESHPOINT.IPOSITION |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1124 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1125 ############################################# |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1126 ############# Profilschnitt MESH ############ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1127 ############################################# |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1128 ############################################# |
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
|
1129 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
|
1130 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
|
1131 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
|
1132 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
|
1133 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
|
1134 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
|
1135 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
|
1136 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
|
1137 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
|
1138 order by to_char(msv.TIMEVALUE,'YYYY') |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1139 verticalcrosssection_mesh_date = select distinct \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1140 msv.TIMEVALUE KEY, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1141 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1142 from MEDIAN.MESHSCALARVALUE msv, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1143 MEDIAN.MESH m \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1144 where m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1145 msv.PARTID >= m.PARTIDMIN AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1146 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
|
1147 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
|
1148 to_char(msv.TIMEVALUE,'YYYY') in (?) \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1149 order by msv.TIMEVALUE |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1150 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
|
1151 ((ml.UPPERZLOCATION + ml.LOWERZLOCATION) / 2) Z, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1152 msv.DATAVALUE YORDINATE, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1153 msv.PARAMETERID GROUP1, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1154 msv.TIMEVALUE GROUP2, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1155 MEDIAN.MESHPOINT.JPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1156 MEDIAN.MESHPOINT.IPOSITION, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1157 MEDIAN.MESHPOINT.KPOSITION \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1158 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1159 MEDIAN.MESHPOINT, \ |
199
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1160 MEDIAN.MESH m, \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1161 MEDIAN.MESHSCALARVALUE msv \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1162 where msv.FEATUREID = MEDIAN.MESHPOINT. FEATUREID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1163 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1164 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1165 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1166 m.PARTIDMIN <= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1167 m.PARTIDMAX >= msv.PARTID AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1168 msv.PARAMETERID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1169 msv.TIMEVALUE = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1170 m.OBJECTID = ? AND \ |
b66e8a6f3907
Moved Configurationfiles
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1171 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
|
1172 ( \ |
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
|
1173 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
|
1174 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
|
1175 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
|
1176 ) \ |
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
|
1177 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
|
1178 msv.PARAMETERID, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1179 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
|
1180 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
|
1181 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
|
1182 |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1183 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
|
1184 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
|
1185 '*' TYPE, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1186 ST_ASTEXT(SHAPE), \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1187 0 BOTDEPTH, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1188 (((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
|
1189 MSV.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1190 MSV.DATAVALUE, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1191 MSV.PARAMETERID PARAMETER, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1192 MEDIAN.MESHPOINT.JPOSITION, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1193 MEDIAN.MESHPOINT.IPOSITION, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1194 MEDIAN.MESHPOINT.KPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1195 2 DATAID , \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1196 '1' QF \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1197 from MEDIAN.MESHLAYER ml, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1198 MEDIAN.MESHPOINT, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1199 MEDIAN.MESH m, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1200 MEDIAN.SOURCEINFO SI, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1201 MEDIAN.MESHSCALARVALUE msv \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1202 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
|
1203 ml.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1204 ml.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1205 m.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1206 m.PARTIDMIN <= msv.PARTID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1207 m.PARTIDMAX >= msv.PARTID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1208 M.SOURCEID = SI.SOURCEID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1209 msv.PARAMETERID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1210 msv.TIMEVALUE = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1211 m.OBJECTID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1212 MEDIAN.MESHPOINT.FEATUREID in \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1213 ( select FEATUREID \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1214 from MEDIAN.MESHPOINT mp, \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1215 MEDIAN.MESH m \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1216 where m.OBJECTID = ? AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1217 mp.MESHID = m.MESHID AND \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1218 ? = (select ? from MEDIAN.MESHPOINT where FEATUREID = ?)) \ |
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1219 order by msv.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1220 MEDIAN.MESHPOINT.JPOSITION, \ |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1221 MEDIAN.MESHPOINT.IPOSITION, \ |
765
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1222 MEDIAN.MESHPOINT.KPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1223 msv.PARAMETERID |
246
b7f69809239c
Added ODV-Export to VerticalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
245
diff
changeset
|
1224 |
216
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1225 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1226 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1227 ########## Horizontalschnitt MESH ########### |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1228 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1229 ############################################# |
9db263ee2678
Added Workflow for determining the Query-Parameters for Horizontal cross-sections.
Tim Englich <tim.englich@intevation.de>
parents:
213
diff
changeset
|
1230 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
|
1231 '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
|
1232 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
|
1233 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
|
1234 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
|
1235 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
|
1236 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
|
1237 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
|
1238 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
|
1239 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
|
1240 |
532
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1241 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
|
1242 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
|
1243 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
|
1244 from MEDIAN.MESHSCALARVALUE msv, \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1245 MEDIAN.MESH m \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1246 where m.OBJECTID = ? AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1247 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
|
1248 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
|
1249 msv.PARAMETERID = ? \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1250 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
|
1251 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
|
1252 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
|
1253 msv.TIMEVALUE VALUE \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1254 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
|
1255 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
|
1256 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
|
1257 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
|
1258 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
|
1259 msv.PARAMETERID = ? AND \ |
d2f97cb2ac32
Splitted date selection of product 'Horizontalschnitt' into two steps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
524
diff
changeset
|
1260 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
|
1261 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
|
1262 |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1263 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
|
1264 MSV.DATAVALUE YORDINATE, \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1265 MEDIAN.MESHPOINT.JPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1266 MEDIAN.MESHPOINT.IPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1267 MEDIAN.MESHPOINT.KPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1268 MSV.PARAMETERID, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1269 MSV.TIMEVALUE, \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1270 2 DATAID \ |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1271 from MEDIAN.MESHLAYER ML, \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1272 MEDIAN.MESHPOINT, \ |
218
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1273 MEDIAN.MESH M, \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1274 MEDIAN.MESHSCALARVALUE MSV \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1275 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
|
1276 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1277 ML.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1278 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
|
1279 M.PARTIDMIN <= MSV.PARTID AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1280 M.PARTIDMAX >= MSV.PARTID AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1281 MSV.PARAMETERID = ? AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1282 MSV.TIMEVALUE = ? AND \ |
926530bda1a7
Integrated the OutputTransition for Horizontal Cross-Sections
Tim Englich <tim.englich@intevation.de>
parents:
217
diff
changeset
|
1283 M.OBJECTID = ? AND \ |
482
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1284 MEDIAN.MESHPOINT.KPOSITION = ? \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1285 order by MEDIAN.MESHPOINT.JPOSITION, \ |
64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
469
diff
changeset
|
1286 MEDIAN.MESHPOINT.IPOSITION |
245
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1287 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
|
1288 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
|
1289 '*' TYPE, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1290 ST_ASTEXT(SHAPE), \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1291 0 BOTDEPTH, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1292 (((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
|
1293 MSV.TIMEVALUE, \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1294 MSV.DATAVALUE, \ |
245
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1295 MSV.PARAMETERID PARAMETER, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1296 MEDIAN.MESHPOINT.JPOSITION, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1297 MEDIAN.MESHPOINT.IPOSITION, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1298 MEDIAN.MESHPOINT.KPOSITION \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1299 from MEDIAN.MESHLAYER ML, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1300 MEDIAN.MESHPOINT, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1301 MEDIAN.MESH M, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1302 MEDIAN.SOURCEINFO SI, \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1303 MEDIAN.MESHSCALARVALUE MSV \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1304 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
|
1305 ML.KPOSITION = MEDIAN.MESHPOINT.KPOSITION and \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1306 ML.MESHID = MEDIAN.MESHPOINT.MESHID and \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1307 M.MESHID = MEDIAN.MESHPOINT.MESHID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1308 M.PARTIDMIN <= MSV.PARTID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1309 M.PARTIDMAX >= MSV.PARTID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1310 M.SOURCEID = SI.SOURCEID AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1311 MSV.PARAMETERID = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1312 MSV.TIMEVALUE = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1313 M.OBJECTID = ? AND \ |
9697a6b8d2c9
Added ODV-Export to HorizontalCrossSection on Meshes
Tim Englich <tim.englich@intevation.de>
parents:
244
diff
changeset
|
1314 MEDIAN.MESHPOINT.KPOSITION = ? \ |
319
251f16a083f8
Added RegionFilter-Support to HorizontalProfile InstantaneousPoint
Tim Englich <tim.englich@intevation.de>
parents:
306
diff
changeset
|
1315 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
|
1316 MEDIAN.MESHPOINT.IPOSITION, \ |
f28a7eac542a
Integrated valid ODV-Export to the GNV-Artifacts
Tim Englich <tim.englich@intevation.de>
parents:
762
diff
changeset
|
1317 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
|
1318 |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1319 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
|
1320 FEATUREID KEY ,\ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1321 DESCRIPTION VALUE \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1322 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
|
1323 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
|
1324 FEATUREID > 0 \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1325 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
|
1326 |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1327 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
|
1328 FEATURECODE KEY, \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1329 NAME VALUE \ |
05663e307495
Added the RegionFilters into the configuration of the Products for Meshes.
Tim Englich <tim.englich@intevation.de>
parents:
218
diff
changeset
|
1330 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
|
1331 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
|
1332 FEATUREID = ? \ |
336
1b9ca0f2d498
Added marker for different data sources in sql queries.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
325
diff
changeset
|
1333 ORDER BY NAME |
455
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1334 |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1335 rasterQuery = SELECT ST_ASTEXT(RASTER) \ |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1336 FROM MEDIAN.TOPO_WORLD_2MIN \ |
363236fc462d
Added Rasterdatasupport to VerticalCrossSections
Tim Englich <tim.englich@intevation.de>
parents:
428
diff
changeset
|
1337 WHERE INTERSECTS(RASTER, "?") |
604
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1338 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1339 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
|
1340 FROM MEDIAN.FEATUREAREA, \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1341 MEDIAN.FIS_HAS_REGION FHR \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1342 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
|
1343 FHR.FEATURETYPE = MEDIAN.FEATUREAREA.FEATURETYPE AND \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1344 FHR.FEATURECODE = MEDIAN.FEATUREAREA.FEATURECODE AND \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1345 INTERSECTS(SHAPE,"?") |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1346 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1347 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
|
1348 ID_MAPSERVICE \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1349 FROM MEDIAN.FIS_HAS_MAPSERVICE \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1350 WHERE ID_MAPSERVICE IN (?) |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1351 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1352 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
|
1353 FROM MEDIAN.MAPSERVICE_HAS_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1354 WHERE ID_MAPSERVICE = ? |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1355 |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1356 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
|
1357 FROM MEDIAN.LAYER_HAS_PARAMETER \ |
938ce81a6bd0
Integrated Database-Support for the Mapviewer-Interface
Tim Englich <tim.englich@intevation.de>
parents:
532
diff
changeset
|
1358 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
|
1359 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
|
1360 |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1361 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1362 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1363 ######### Layer Contis und Nauthis ########## |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1364 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1365 ############################################# |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1366 |
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
|
1367 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
|
1368 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
|
1369 FROM MEDIAN.LAYER_HAS_SUBTYPES \ |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1370 WHERE ID_FEATURECLASS LIKE ? \ |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1371 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
|
1372 |
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1373 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
|
1374 QUERY_STRING, \ |
724
9ba6bb85d6dd
Integrate lookup for MapFileTemplate for the different Layer.
Tim Englich <tim.englich@intevation.de>
parents:
649
diff
changeset
|
1375 ID_MAPSERVICE || '_' ||ID_LAYER \ |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1376 FROM MEDIAN.LAYER_HAS_SUBTYPES \ |
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
|
1377 WHERE ROW_ID = ? |
616
93978859fa9e
Added the Configuration and the Classes for the new Product Layer.
Tim Englich <tim.englich@intevation.de>
parents:
604
diff
changeset
|
1378 |
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
|
1379 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
|
1380 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
|
1381 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
|
1382 |
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
|
1383 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
|
1384 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
|
1385 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
|
1386 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
|
1387 |
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
|
1388 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
|
1389 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
|
1390 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
|
1391 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
|
1392 |
756
1614b27dcbfa
Added Support of Layers which are Joined from two Tables.
Tim Englich <tim.englich@intevation.de>
parents:
754
diff
changeset
|
1393 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
|
1394 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
|
1395 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
|
1396 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
|
1397 TABLE_NAME = '?' |