You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This config crashes weathermap with an exception while trying to find the crossing point of two parallel lines. The same thing does not happen if you move both points 4000 pixels left (X is 370 and 30) instead. It is also fine if SPLITPOS is 50.
WIDTH 4640
HEIGHT 3100
# regular NODEs:
NODE node111111111111111111111111111
LABEL node111111111111111111111111111
POSITION 4370 100
NODE node2
LABEL node2
POSITION 4030 2400
LINK node111111111111111111111111111-node2
WIDTH 2
BWLABEL bits
VIASTYLE angled
SPLITPOS 19
NODES node111111111111111111111111111:W10 node2:E
VIA node2 320 0
The text was updated successfully, but these errors were encountered:
Failure is PHP Fatal error: Uncaught Weathermap\Core\WeathermapInternalFail: ParallelLinesNeverCross in /home/howie/Work/network-weathermap/lib/Weathermap/Core/Line.php:56
While finding $crossingPoint1, which is where $line1 and $line2 cross - the outside corner of the link as it goes around a VIA corner. This should never be parallel, as the spine is simplified to remove colinear points after it is split into two spines (one for each direction, split at SPLITPOS).
If SPLITPOS is close to one end, you can end up with a spine of only two points after the split is done. Spine::splitAtDistance() needs to interpolate a middle point if there are only two. (Good news is that if there are only two, it'll always be a simple linear interpolation)
This config crashes weathermap with an exception while trying to find the crossing point of two parallel lines. The same thing does not happen if you move both points 4000 pixels left (X is 370 and 30) instead. It is also fine if SPLITPOS is 50.
The text was updated successfully, but these errors were encountered: