From 6996ef1a12a033249b898d61590c719bdef923e9 Mon Sep 17 00:00:00 2001 From: MaelReboux Date: Fri, 4 Jan 2019 00:09:45 +0100 Subject: [PATCH] =?UTF-8?q?calcul=20des=20km=20redadeg=20sur=20les=20tron?= =?UTF-8?q?=C3=A7ons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- load_tables_3948.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/load_tables_3948.sql b/load_tables_3948.sql index 30a74b6..e820dfd 100644 --- a/load_tables_3948.sql +++ b/load_tables_3948.sql @@ -57,10 +57,9 @@ INSERT INTO phase_1_trace_troncons_3948 UPDATE phase_1_trace_troncons_3948 SET longueur = - ( - CASE + (CASE WHEN TRUNC( ST_Length(the_geom)::numeric , 0) = 939 THEN 940 ELSE TRUNC( ST_Length(the_geom)::numeric , 0) - END - ) + END), + km = uid -- km redadeg