Description Usage Arguments Details Value
View source: R/splitNearDist.R
splitNearDist
splits Spatial* objects from the (sp) package using
seqSPDF
, and runs rgeos::gDistance()
on the lists to obtain the
nearest distance or nearest distance matrix. Behaves like NEAR in ArcGIS.
1 | splitNearDist(input, near, sep = 1000, output = c("nearest", "matrix"))
|
input |
Spatial* object. |
near |
Spatial* object. |
sep |
Passed to |
output |
Return nearest distance or matrix of all combinations? |
This is a general wrapper for rgeos::gDistance()
that allows
for quicker nearer distance calculations and fixed a ram leak issue caused by
large datasets when using the native rgeos function.
Returns either a vector of the nearest distance of each input to the nearfeature or a matrix of all combinations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.