Commit a2749a63 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed TypeError in fill_holes_within_poly() in case older pandas version is installed.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent 255b7e9a
......@@ -187,7 +187,7 @@ def fill_holes_within_poly(poly):
gdf['area_filled'] = gdf.apply(
lambda GDF_row: Polygon(np.swapaxes(np.array(GDF_row.geometry.exterior.coords.xy), 0, 1)).area, axis=1)
largest_poly_filled = gdf.loc[gdf['area_filled'].idxmax()]['geometry']
largest_poly_filled = gdf.loc[gdf['area_filled'].astype(np.float64).idxmax()]['geometry']
# noinspection PyTypeChecker
gdf['within_or_equal'] = gdf.apply(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment