You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if there is a simple solution in sf, because st_distance(by_feature = TRUE) works pretty well at giving the resulting length.
The text was updated successfully, but these errors were encountered:
olivroy
changed the title
st_union(by_feature = TRUE) between polygon and point to get a line string of the shortest distancest_union(by_feature = TRUE) between polygon and point to get a line string between point and closest point on polygon
Aug 26, 2024
Similar to this question on Stack Overflow:
https://stackoverflow.com/questions/71240972/how-can-i-draw-a-line-from-a-point-to-a-polygon-edge-and-then-get-the-lines-len
I wonder if it was possible to get a line from combining a polygon and a point geometry. #2259
Created on 2024-08-26 with reprex v2.1.1
Session info
I am wondering if there is a simple solution in sf, because
st_distance(by_feature = TRUE)
works pretty well at giving the resulting length.The text was updated successfully, but these errors were encountered: