genet
genet copied to clipboard
links_on_spatial_condition failing for large spatial area
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)'