diff --git a/measprocess/geospatial.py b/measprocess/geospatial.py index 90e851b5f5c06b262618b383024b4dff5b3a6de9..d426cc683e392af6809242dac002799785f0624c 100644 --- a/measprocess/geospatial.py +++ b/measprocess/geospatial.py @@ -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")