Skip to content

SievePostprocessor

Bases: GeodataPostprocessor

Geodata postprocessor that sieves the polygons

PARAMETER DESCRIPTION
min_area

minimum area of the polygons to retain in square meters

TYPE: float

from_config classmethod

Creates a sieve postprocessor from the configuration.

PARAMETER DESCRIPTION
config

configuration

TYPE: SievePostprocessorConfig

RETURNS DESCRIPTION
SievePostprocessor

sieve postprocessor

__call__

Postprocesses the geodata by sieving the polygons.

PARAMETER DESCRIPTION
gdf

geodataframe

TYPE: gpd.GeoDataFrame

RETURNS DESCRIPTION
gpd.GeoDataFrame

postprocessed geodataframe


SievePostprocessorConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of SievePostprocessor

ATTRIBUTE DESCRIPTION
min_area

minimum area of the polygons to retain in square meters

TYPE: float