Skip to content

Commit

Permalink
ameba
Browse files Browse the repository at this point in the history
  • Loading branch information
TJhon committed Jul 6, 2023
1 parent df87fa0 commit 0f7aa17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osrmareas/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def get_ameba(df, max_km=None, alpha = 0, xcol='dest_lon', ycol='dest_lat', km_c
for _, row in crop_df.iterrows():
border.append((row[xcol], row[ycol]))
bd = alphashape.alphashape(border, alpha)
gdf = gpd.GeoDataFrame(geometry=[bd]).\
set_crs(crs, allow_override=True)
gdf = gpd.GeoDataFrame(geometry=[bd])
# .\
# set_crs(crs, allow_override=True)
return gdf

0 comments on commit 0f7aa17

Please sign in to comment.