Helper geometry function to measure calculate the ratio between the length and width.

Helper geometry function to measure calculate the ratio between the length and the equivalent width.

fs_lwratio(X)

fs_leqwratio(X, unit = NULL)

Arguments

X

polygons of building footprints of type sf.

unit

string indicating unit of measure. Passed to units::set_units.

Value

numeric vector of length / width measured for each item in X.

numeric vector of length / width measured for each item in X.

Details

The length is defined as the longest side of the rotated minimum bounding rectangle and the width is the shorter side.

The length is defined as the longest side of the rotated minimum bounding rectangle. The equivalent width is defined as the area of the footprint divided by its length.