CalcBoundaryConvex: Calculate Boundary Convexity

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Cpp function that calculates convexity of a single feature.

Usage

1
2
3
4
5
6
7
8
9
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


rLFT documentation built on Sept. 24, 2021, 9:07 a.m.