fill_polygon_holes

fill_polygon_holes#

fill_polygon_holes(gpd_results: GeoDataFrame, threshold: float | None = None) GeoDataFrame[source]#

Fill holes over a given threshold on the hole area (in meters) for all polygons of a GeoDataFrame. If the threshold is set to None, every hole is filled.

Parameters:
  • gpd_results (gpd.GeoDataFrame) – Geodataframe filled whith drilled polygons

  • threshold (float) – Holes area threshold, in meters. If set to None, every hole is filled.

Returns:

GeoDataFrame with filled holes

Return type:

gpd.GeoDataFrame