JeremyGelb / spNetwork

An R package to perform spatial analysis on networks.
GNU General Public License v2.0
34 stars 2 forks source link

RGEOS invalid distance #1

Closed JeremyGelb closed 2 years ago

JeremyGelb commented 3 years ago

It seems that the function maptools::snapPointsToLines produces errors in some cases when the points are already perfectly snapped.

JeremyGelb commented 3 years ago

The bug should be corrected in the dev version. I replaced the function from maptools by a home made function based on maptools implementation. It is a temporary fix because I need to use st_nearest from sf and I would prefere to avoid.

JeremyGelb commented 2 years ago

In the last version, many geometrical functions were reworked in c++ by using the boost library (package BH). sf is not longer needed, but BH is required. The new fonctions are faster (at least 2x). BH will be used in the future for new methods using graphs.