CalcBoundaryConvex {rLFT}R Documentation

Calculate Boundary Convexity

Description

Cpp function that calculates convexity of a single feature.

Usage

CalcBoundaryConvex(
  feature,
  windowSize,
  stepSize,
  fid,
  rid,
  filename = "",
  noRID = TRUE
)

Arguments

feature

A NumericMatrix that holds the data of one feature from the given sf object.

windowSize

A double describing the diameter of the window used to measure convexity.

stepSize

A double describing the distance between measurements along an arc.

fid

An integer that holds the current feature id.

rid

A string that holds the unique route ID for the current feature.

filename

A string denoting the name of the file you wish to output convexity data to.

noRID

A boolean that denotes whether the given sf object has an RID column.

Details

Cpp function that takes in a single feature from the given sf object and calculates raw convexity, convexity index, and sinuosity of that feature. It formats convexity data into a NumericMatrix and outputs it.

Value

matrix


[Package rLFT version 1.0.1 Index]