Describe the bug
When running sf::st_crop() on the edges table of a sfnetwork, the edge linestrings are cut by the bounding box of the cropping object. This means that the coordinates of the corresponding end nodes need to be updated too. Currently this is not happening. Hence, cropping edges returns a network without a valid spatial network structure.
Expected behavior
Correctly update node coordinates after cropping edges.
Describe the bug When running
sf::st_crop()
on the edges table of a sfnetwork, the edge linestrings are cut by the bounding box of the cropping object. This means that the coordinates of the corresponding end nodes need to be updated too. Currently this is not happening. Hence, cropping edges returns a network without a valid spatial network structure.Expected behavior Correctly update node coordinates after cropping edges.