This tool can be used to calculate the elongation ratio for vector polygons. The elongation ratio values calculated for each vector polygon feature will be placed in the accompanying database file (.dbf) as an elongation field (ELONGATION).

The elongation ratio (`E`) is:

> E = 1 - S / L

Where `S` is the short-axis length, and `L` is the long-axis length. Axes lengths are determined by estimating the minimum bounding box.

The elongation ratio provides similar information as the Linearity Index. The ratio is not an adequate measure of overall polygon narrowness, because a highly sinuous but narrow polygon will have a low linearity (elongation) owing to the compact nature of these polygon.

## Function Signature

`def elongation_ratio(self, input: Vector) -> Vector: ...`

## Project Links

WbW Homepage User Manual Support WbW