View source: R/SuperFunctions.R
GetSurfaceValues | R Documentation |
GetSurfaceValues
builds an input file with the identifier (optional), X, and Y and runs SurfaceSample
to interpolate a value from the specified surface. Output is a CSV file with the value.
GetSurfaceValues(
df,
xLabel = "X",
yLabel = "Y",
idLabel = "Value",
surfaceFile = NULL,
...
)
df |
data frame containing columns for the identifier (optional), X, and Y. |
xLabel |
character: Label for the column containing the X value. |
yLabel |
character: Label for the column containing the Y value. |
idLabel |
character: Label for the new column in |
surfaceFile |
character: Name for the input surface files (PLANS DTM format). |
... |
Additional parameters that will be passed to |
Returns a dataframe with an additional column containing the sampled surface values. If the
surfacefile
does not cover the location or contains invalid data, values for locations will be -1.0.
LTKFunctions generate a separate command for each item when the required parameters are lists. This is useful when you want to use the same command and options but different input data and output files. However, this works only when the switches and options are the same for all commands (not lists). If you try to use a list of switches and/or options and a list of input files, you will produce commands using all sets of switches and/or options for every input file.
## Not run:
GetSurfaceValues(df, "X", "Y", "ground.dtm")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.