File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ DROP VIEW IF EXISTS qgep_od .vw_reaches_with_blank_connections ;
2
+
3
+
4
+ -- ------
5
+ -- View that shows all reaches with blank connections (Blindanschlüsse). Can be used for visualisation
6
+ -- Author Urs Kaufmann 19.6.2024
7
+ -- ------
8
+
9
+ CREATE OR REPLACE VIEW qgep_od .vw_reaches_with_blank_connections AS
10
+
11
+ SELECT re .obj_id ,
12
+ re .progression_geometry ,
13
+ ch .function_hierarchic ,
14
+ reto .obj_id AS to_obj_id
15
+ FROM qgep_od .reach re
16
+ LEFT JOIN qgep_od .reach_point rpto ON rpto .obj_id ::text = re .fk_reach_point_to ::text
17
+ LEFT JOIN qgep_od .wastewater_networkelement neto ON neto .obj_id ::text = rpto .fk_wastewater_networkelement ::text
18
+ LEFT JOIN qgep_od .reach reto ON reto .obj_id ::text = neto .obj_id ::text
19
+ LEFT JOIN qgep_od .wastewater_networkelement ne ON ne .obj_id ::text = re .obj_id ::text
20
+ LEFT JOIN qgep_od .channel ch ON ch .obj_id ::text = ne .fk_wastewater_structure ::text
21
+ WHERE reto .obj_id IS NOT NULL ;
You can’t perform that action at this time.
0 commit comments