From d52a8e3db8dfb0e508da93907fe7689ef33a08d9 Mon Sep 17 00:00:00 2001 From: SJiB Date: Thu, 8 Aug 2024 16:21:44 +0200 Subject: [PATCH] change alias node to wn --- datamodel/app/view/vw_change_points.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodel/app/view/vw_change_points.sql b/datamodel/app/view/vw_change_points.sql index c62dcdb10..6029a860c 100644 --- a/datamodel/app/view/vw_change_points.sql +++ b/datamodel/app/view/vw_change_points.sql @@ -1,7 +1,7 @@ CREATE OR REPLACE VIEW tww_app.vw_change_points AS SELECT ne_node.obj_id, -node.situation3d_geometry AS geom, +wn.situation3d_geometry AS geom, re.material <> re_next.material AS change_in_material, re.clear_height <> re_next.clear_height AS change_in_clear_height, (rp_from.level - rp_to.level) / re.length_effective - (rp_next_from.level - rp_next_to.level) / re_next.length_effective AS change_in_slope @@ -9,7 +9,7 @@ FROM tww_od.reach re LEFT JOIN tww_od.reach_point rp_to ON rp_to.obj_id::text = re.fk_reach_point_to::text LEFT JOIN tww_od.reach_point rp_from ON rp_from.obj_id::text = re.fk_reach_point_from::text LEFT JOIN tww_od.wastewater_networkelement ne_node ON ne_node.obj_id::text = rp_to.fk_wastewater_networkelement::text -LEFT JOIN tww_od.wastewater_node node ON node.obj_id::text = ne_node.obj_id::text +LEFT JOIN tww_od.wastewater_node wn ON wn.obj_id::text = ne_node.obj_id::text LEFT JOIN tww_od.reach_point rp_next_from ON rp_next_from.fk_wastewater_networkelement::text = ne_node.obj_id::text LEFT JOIN tww_od.reach re_next ON rp_next_from.obj_id::text = re_next.fk_reach_point_from::text LEFT JOIN tww_od.reach_point rp_next_to ON rp_next_to.obj_id::text = re_next.fk_reach_point_to::text