Width#

Algorithm ID: hedgetools:width

This tool takes a polygon vector layer representing hedges and a line vector layer representing their median axis, and computes the width of each polygon.

Parameters#

Label

Name

Type

Description

Input polygon layer

INPUT_POLYGON

[vector: polygon]

Polygon vector layer representing the hedges.

Input arc layer

INPUT_ARC

[vector: line]

Line vector layer representing the hedge median axis.

Width method

METHOD

[enumeration]

Method used to compute width:

  • 0: Accurate – Computes perpendicular transects along the median axis and measures their length.
  • 1: Approximate – Computes the distance from the median axis to the closest polygon boundary and multiplies it by 2.

Sampling distance (meters)

DISTANCE

[numeric: integer]
Default: 10

Interval along the median axis used for width sampling.

Percentile for outlier removal

PERCENTILE

[numeric: integer]
Optional

Removes extreme width values using the IQR method with the specified percentile before computing summary statistics.

Output width layer

OUTPUT

[vector: polygon]
Default: [Create temporary layer]

Output polygon vector layer.

Outputs#

Label

Name

Type

Description

Output width layer

OUTPUT

[vector: polygon]

Polygon vector layer with five new fields per selected method: width_method_mean (mean width), width_method_med (median width), width_method_min (minimum width), width_method_max (maximum width), and width_method_std (standard deviation of width). Where method is either acc or approx.