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
Shapely's Polygon instantiation causes an `AttributeError´: 'list' object has no attribute 'array_interface'
Here's what I was expecting
A list of Polygons
Here's what I think could be improved
Since HereMaps is the only router having that problem, the bug is likely to be caused by the response parsing. It seems like the geometry is wrapped one too many times into a list, because
geometries.append(Polygon(isochrone.geometry[0]))
produces the desired result.
The text was updated successfully, but these errors were encountered:
Here's what I did
Here's what I got
Polygon
instantiation causes an `AttributeError´: 'list' object has no attribute 'array_interface'Here's what I was expecting
A list of Polygons
Here's what I think could be improved
Since HereMaps is the only router having that problem, the bug is likely to be caused by the response parsing. It seems like the geometry is wrapped one too many times into a list, because
produces the desired result.
The text was updated successfully, but these errors were encountered: