k-Nearest Neighbor Join for Spatial Data

K-nearest neighbor search for projected and non-projected 'sf' spatial layers. Nearest neighbor search uses (1) C code from 'GeographicLib' for lon-lat point layers, (2) function knn() from package 'nabor' for projected point layers, or (3) function st_distance() from package 'sf' for line or polygon layers. The package also includes several other utility functions for spatial analysis.


nngeo 0.1.0 (2018-01-16)

  • Initial version

nngeo 0.1.5 (2018-03-16)

  • Added tests for 'st_nn'
  • Added progress bar for 'st_nn' (except when using projected points method) and for 'st_connect'
  • Added C code (Vincenty) for 'st_nn' lon-lat points method
  • Fixed sample size mistake in 'st_nn' example
  • Fixed error when using 'sfc' objects

nngeo 0.1.8 (2018-05-15)

  • 'st_connect' lines snap to polygon/line outline instead of centroid
  • Added new examples
  • Fixed progress bar issues
  • Changed formatting in vignette

nngeo 0.2.0 (2018-07-18)

  • Added OpenMP support
  • Added 'dist' (sampling point interval) parameter for 'st_connect'
  • Fixed progress bar issues in 'st_connect'
  • Switched from 'for' loop to 'lapply' in 'st_connect'

nngeo 0.2.1 (2018-07-21)

  • Removed OpenMP support due to issue with Solaris

nngeo 0.2.2 (2018-09-29)

  • Using 'STRICT_R_HEADERS' in Rcpp

nngeo 0.2.4 (2018-12-06)

  • Added 'st_ellipse' function
  • Added 'st_remove_holes' function

nngeo 0.2.7 (2019-03-12)

  • Added 'st_postgis' function
  • Added 'st_segments' function

nngeo 0.2.8

  • Change C code fron 'distance.c' to 'GeographicLib'
  • Use C code through the C API instead of 'Rcpp'

More ideas:

  • Translate loop over 'y_features' to C code
  • Add parallel processing option
  • Add 'st_az' function
  • Geodesic buffer
  • 'igraph' object from layer based on proximity
  • 3D distance of 'POINT Z' layers

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.5 by Michael Dorman, 13 days ago

https://michaeldorman.github.io/nngeo/, https://github.com/michaeldorman/nngeo/

Report a bug at https://github.com/michaeldorman/nngeo/issues/

Browse source code at https://github.com/cran/nngeo

Authors: Michael Dorman [aut, cre] , Johnathan Rush [ctb] , Ian Hough [ctb] , Dominic Russel [ctb] , Luigi Ranghetti [ctb] , Attilio Benini [ctb] , Arnaud Tarroux [ctb] , Charles F.F Karney [ctb, cph] (Author of included C code from 'GeographicLib' for geodesic distance)

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports nabor, units, methods, lwgeom, parallel, s2, data.table

Depends on sf

Suggests DBI, RPostgreSQL, stars, knitr, rmarkdown, tinytest

Imported by EPP, osmgeosample, starsExtra.

See at CRAN