r-spatial / spdep

Spatial Dependence: Weighting Schemes and Statistics
https://r-spatial.github.io/spdep/
122 stars 26 forks source link

Poly2nb snap #164

Closed rsbivand closed 1 month ago

rsbivand commented 2 months ago

@JosiahParry Could you take a look at this attempt to add 10mm as the default snap for projected sf object input and 1e-7 for geographical ((180*0.01)/(pi*6378137) is 8.983153e-08, (1e-7*pi*6378137)/180 is 0.01113m, maybe prefer 9e-8, which is 0.01002m?)?

JosiahParry commented 2 months ago

Thanks @rsbivand! I am presently traveling and I can give this a look on Monday/Tuesday.

rsbivand commented 1 month ago

@JosiahParry any comments?