Skip to content

Commit

Permalink
remove geoseries to geodatafrmae
Browse files Browse the repository at this point in the history
  • Loading branch information
dhodcz2 committed Sep 30, 2023
1 parent 8e14f20 commit 58561b4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tile2net/raster/tile_utils/geodata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ def unary_multi(gdf: gpd.GeoDataFrame) -> gpd.GeoDataFrame:
loc = ~gdf.is_valid.values
logger.warning(f'Number of invalid geometries: {loc.sum()} out of {len(gdf)}')
gdf.geometry.loc[loc] = shapely.make_valid(gdf.geometry.loc[loc])
if isinstance(gdf, gpd.GeoSeries):
gdf = gpd.GeoDataFrame(gdf)
result = (
gdf
# dissolve overlapping geometries
Expand Down

0 comments on commit 58561b4

Please sign in to comment.