genet icon indicating copy to clipboard operation
genet copied to clipboard

links_on_spatial_condition failing for large spatial area

Open Arupwkeu opened this issue 2 years ago • 0 comments

Hey,

I was using the function links_on_spatial_condition with a geojson input and it was failing due to a memory error (see below). The geojson contained a polygon which covered multiple cities. I was able to work around it by using gpd.sjoin(network_gdf,urban_gdf,how='inner', op='intersects'). It might be worth changing the function links_on_spatial_condition to use gpd.sjoin instead of gdf.intersects.

Thanks.

Error: 'Segmentation fault (core dumped)'

Arupwkeu avatar May 20 '22 15:05 Arupwkeu