Experimental

Filters polygon features below a minimum area threshold.

vector gis filter polygon legacy-port

Parameters

NameDescriptionRequiredDefault
inputInput polygon vector layer.Requiredpolygons.shp
thresholdMinimum polygon area to retain, in layer coordinate units squared.Required1000.0
outputOutput vector path.Required

Examples

Removes polygons smaller than the specified area threshold.

wbe.filter_vector_features_by_area(input='polygons.shp', output='filtered_polygons.shp', threshold=1000.0)

Project Links

WbW Homepage User Manual Learn More