annotate schema/updates/1461/01.config.sql @ 5437:eeee1c411576 marking-single-beam

Pdf-Template: Use survey-date for {date-minor} when bottleneck survey is visible.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 13 Jul 2021 12:24:29 +0200
parents 24156a964eaa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5423
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 -- GeoServer SQL views without time support
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 INSERT INTO sys_admin.published_services (
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 schema, name, srid, key_column, view_def
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4 ) VALUES
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
5 ('waterway', 'sounding_results_marking_points_geoserver', 4326, NULL, $$
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
6 SELECT bottleneck_id,
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
7 to_char(date_info, 'YYYY-MM-DD') AS date_info,
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
8 height,
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
9 points,
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10 surtyp,
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 zpg_exception
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12 FROM waterway.sounding_results_marking_points mp
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
13 JOIN waterway.sounding_results sr ON sr.id = mp.sounding_result_id
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
14 $$);
24156a964eaa [WIP] Add support for scan marking points in geoserver.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
15