sdswr icon indicating copy to clipboard operation
sdswr copied to clipboard

Programming challenges

Open edzer opened this issue 8 years ago • 1 comments

  • building on the sf package, write a function that for p features, given n, finds the n nearest features and returns their index as a list with integer vectors. A brute-force method would first compute the complete distance matrix using st_distance; a smarter method avoids storing the full matrix by iterating over the features, a really smart method uses a spatial index to avoid having to compute all distances. See also https://github.com/edzer/sfr/issues/76
  • ideas and wishes from several people are mentioned here and in links found there

edzer avatar Jun 27 '17 14:06 edzer

Create a function that plots an sf object automatically over a google map or OSM background; see e.g. https://github.com/dkahle/ggmap/pull/162 and argument bgMap in sf:::plot_sf.

edzer avatar Jun 28 '17 08:06 edzer