Skip to content

FillPostprocessor

Bases: GeodataPostprocessor

Geodata postprocessor that fills holes in the polygons

PARAMETER DESCRIPTION
max_area

maximum area of the holes to retain in square meters

TYPE: float

from_config classmethod

Creates a fill postprocessor from the configuration.

PARAMETER DESCRIPTION
config

configuration

TYPE: FillPostprocessorConfig

RETURNS DESCRIPTION
FillPostprocessor

fill postprocessor

__call__

Postprocesses the geodata by filling holes in the polygons.

PARAMETER DESCRIPTION
gdf

geodataframe

TYPE: gpd.GeoDataFrame

RETURNS DESCRIPTION
gpd.GeoDataFrame

postprocessed geodataframe


FillPostprocessorConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of FillPostprocessor

ATTRIBUTE DESCRIPTION
max_area

maximum area of the holes to retain in square meters

TYPE: float