Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
napakalas committed May 27, 2024
1 parent eef181e commit c113d01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mapmaker/routing/routedpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ def draw_line(node_0, node_1, added_properties, tolerance=0.1, separation=2000):
return
angle = (end_point - start_point).angle + tolerance * (end_point - start_point).angle
heading = angle
# end_point -= BezierPoint.fromAngle(heading)*0.9*ARROW_LENGTH
bz = bezier_connect(start_point, end_point, angle, heading)
path_geometry[path_id].append(GeometricShape(
bezier_to_linestring(bz, offset=path_offset), {
Expand Down Expand Up @@ -455,7 +454,7 @@ def draw_line(node_0, node_1, added_properties, tolerance=0.1, separation=2000):
or (edge_type == 'upstream'
and 'upstream' not in [self.__graph.nodes[node_0].get('type'),
self.__graph.nodes[node_1].get('type')])):
# Draw straight lines...
# Draw lines...
terminal_nodes.update([node_0, node_1])
draw_line(node_0, node_1, added_properties)
elif edge_type == 'upstream':
Expand Down

0 comments on commit c113d01

Please sign in to comment.