Skip to content

Commit

Permalink
buffer_union_erode geoseries instead of geodataframe fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dhodcz2 committed Sep 30, 2023
1 parent 58561b4 commit 1e7c8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tile2net/raster/tile_utils/geodata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ def buffer_union(gdf, buff, simp1, simp2):

def buffer_union_erode(gdf, buff, erode, simp1, simp2, simp3):
gdf_buff = buffer_union(gdf, buff, simp1, simp2)
gdf_erode = gdf_buff.geometry.buffer(erode, join_style=2, cap_style=3)
gdf_erode = gdf_buff.copy()
gdf_erode.geometry = gdf_buff.geometry.buffer(erode, join_style=2, cap_style=3)
gdf_uni = unary_multi(gdf_erode)
gdf_uni.geometry = gdf_uni.geometry.set_crs(3857)
gdf_uni.geometry = gdf_uni.geometry.simplify(simp3)
return gdf_uni


def to_metric(gdf, crs=3857):
"""Converts a GeoDataFrame to metric (3857) coordinate
Parameters
Expand Down

0 comments on commit 1e7c8ec

Please sign in to comment.