Experimental

Adds area, length, perimeter, and centroid attributes to vector features.

vector attributes measurements

## Parameters

Name | Description | Required | Default
--- | --- | --- | ---
`input` | Input vector layer. | Required | `input.shp`
`area` | Include AREA field (default true). | Optional | `True`
`length` | Include LENGTH field (default true). | Optional | `True`
`perimeter` | Include PERIMETER field (default true). | Optional | `True`
`centroid` | Include centroid X/Y fields (default true). | Optional | `True`
`output` | Output vector path. | Required | —

## Examples

Adds geometry-derived attributes to each feature.

    wbe.add_geometry_attributes(area=True, centroid=True, input='input.shp', length=True, output='geometry_attributes.shp', perimeter=True)

## Project Links

WbW Homepage User Manual Support WbW