﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
24851	[Patch] Power line checks won't report existing non-power nodes	francois.lacombe	GerdP	"Hello

I found out that current power line checks won't report a power line passing by an exiting node of a highway, for instance.

Here the sketch:
I draw a power line and instead of inadvertently connecting it to a highway with a new node, I inadvertently click on an existing node of this highway.  
The highway's node will remain unchanged, no new tag, so it won't be reported in ""node without power"" check nor ""Node connects a power line or cable with an object"".

Those checks are currently done in the Java class PowerLines.java. I didn't studied it in detail yet but I bet it would be possible to move part of it to mapcss like 

{{{
way[power=line] > node[!power],
  throwWarning: tr(""{0} node without power"");
}
}}}

If correct, this would allow to strip a bit of specific code and make validation more efficient.

Regarding connections between power lines and highways or waterways, I'm not sure we can achieve them in pure mapcss. Let me know.

Best regards"	defect	new	normal	26.09	Core validator			power	gaben
