Opened 5 years ago

Closed 5 years ago

#157 closed enhancement (fixed)

Test 7040 : valeur à exclure ?

Reported by: operon Owned by: frodrigo
Priority: minor Component: osmose-backend
Keywords: Cc:

Description

Dans le test 7040 "manque de poteau électrique, il faut exclure lorsque la ligne est sous-marine avec le tag submarine=yes

Change History (3)

comment:1 Changed 5 years ago by jocelyn

Fred, est-ce que ce patch conviendrait ?

diff --git a/analysers/analyser_osmosis_powerline.py b/analysers/analyser_osmosis_powerline.py
index c454535..433482f 100644
--- a/analysers/analyser_osmosis_powerline.py
+++ b/analysers/analyser_osmosis_powerline.py
@@ -175,6 +175,7 @@ WHERE
     ways.tags?'power' AND
     ways.tags->'power' IN ('line', 'minor_line') AND
     (NOT ways.tags?'tunnel' OR NOT ways.tags->'tunnel' IN ('yes', 'true')) AND
+    (NOT ways.tags?'submarine' OR NOT ways.tags->'submarine' IN ('yes', 'true')) AND
     not nodes.tags?'power'
 ;
 """

comment:2 Changed 5 years ago by frodrigo

oui

comment:3 Changed 5 years ago by jocelyn

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.