base_network: bugfix - bring voronoi cells in correct order
This commit is contained in:
parent
7a16dd2aa4
commit
ddf0da2687
@ -808,7 +808,7 @@ def voronoi(points, outline, crs=4326):
|
||||
voronoi = gpd.GeoDataFrame(geometry=voronoi)
|
||||
joined = gpd.sjoin_nearest(pts, voronoi, how="right")
|
||||
|
||||
return joined.dissolve(by="Bus").squeeze()
|
||||
return joined.dissolve(by="Bus").reindex(points.index).squeeze()
|
||||
|
||||
|
||||
def build_bus_shapes(n, country_shapes, offshore_shapes, countries):
|
||||
|
Loading…
Reference in New Issue
Block a user