Modify

Opened 4 years ago

Closed 4 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

Attachments (0)

Change History (3)

comment:1 Changed 4 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 4 years ago by frodrigo

oui

comment:3 Changed 4 years ago by jocelyn

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.