luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Enable edge subdivision at every edge crossing #134

Open luukvdmeer opened 3 years ago

luukvdmeer commented 3 years ago

Currently to_spatial_subdivision only subdivides an edge when one of its interior points is equal to an interior point or endpoint of another edge. That is: an edge is not subdivided at locations where it crosses another edge, but there is no interior point in at least one of them. I think there are use-cases where the latter is actually desired. It would be nice if we can give users the choice if they want to subdivide only at locations where there is an interior point, or at any crossing.