Description Usage Arguments Details Value
Cpp function that calculates convexity of a single feature.
1 2 3 4 5 6 7 8 9 | CalcBoundaryConvex(
feature,
windowSize,
stepSize,
fid,
rid,
filename = "",
noRID = TRUE
)
|
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. |
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.
matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.