Traceback (most recent call last):
File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/guideway.py", line 209, in get_u_turn_guideways
guideway_data = get_u_turn_guideway(origin_lane, destination_lane, all_lanes)
File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/guideway.py", line 238, in get_u_turn_guideway
'left_border': get_u_turn_border(origin_lane, destination_lane, all_lanes, 'left'),
File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/u_turn.py", line 106, in get_u_turn_border
crosswalk_width=cut_size
File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/turn.py", line 51, in shorten_border_for_crosswalk
temp = cut_border_by_polygon(border, polygon, multi_string_index)
File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/border.py", line 468, in cut_border_by_polygon
shortened_border = b.difference(polygon)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geometry/base.py", line 616, in difference
return geom_factory(self.impl['difference'](self, other))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/topology.py", line 70, in call
self._check_topology(err, this, other)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/topology.py", line 38, in _check_topology
self.fn.name, repr(geom)))
TopologicalError: The operation 'GEOSDifference_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.polygon.Polygon object at 0x1128f0910>
Geometry is no longer a problem. This intersection has crosswalks at a distance from the intersecting streets resulting in the calculated intersection diameter being more than 180 m.
x_data = api.get_intersection((u'62nd Street', u'King Street'), ber, size=500.0, crop_radius=350.0)
Traceback (most recent call last): File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/guideway.py", line 209, in get_u_turn_guideways guideway_data = get_u_turn_guideway(origin_lane, destination_lane, all_lanes) File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/guideway.py", line 238, in get_u_turn_guideway 'left_border': get_u_turn_border(origin_lane, destination_lane, all_lanes, 'left'), File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/u_turn.py", line 106, in get_u_turn_border crosswalk_width=cut_size File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/turn.py", line 51, in shorten_border_for_crosswalk temp = cut_border_by_polygon(border, polygon, multi_string_index) File "/Users/me182sf/Documents/GitHub/intelligent_intersection/source_code/border.py", line 468, in cut_border_by_polygon shortened_border = b.difference(polygon) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geometry/base.py", line 616, in difference return geom_factory(self.impl['difference'](self, other)) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/topology.py", line 70, in call self._check_topology(err, this, other) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/topology.py", line 38, in _check_topology self.fn.name, repr(geom))) TopologicalError: The operation 'GEOSDifference_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.polygon.Polygon object at 0x1128f0910>