Commit 21f09047 authored by Sonja Tripkovic's avatar Sonja Tripkovic

in geospatial.py: get_geoseries_blockages: #Polygon needs at least 3 nodes

parent c3be6150
......@@ -86,7 +86,7 @@ def get_geoseries_blockages(measurement_coords : gpd.GeoSeries, retries : int =
blockages = gpd.GeoSeries(
Polygon(
((node.lon, node.lat) for node in way.nodes)
((node.lon, node.lat) for node in way.nodes if len(way.nodes)>2) # Polygon needs at least 3 nodes
) for way in result.ways
).set_crs("EPSG:4326")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment