Is your feature request related to a problem? Please describe.
The to_spatial_subdivison morpher is used to construct a subdivision of a network by subdividing edges at some interior points. The "new" edges have exactly the same characteristics as the old edges (and there is also a warning message related to this behaviour). I would like to modify the existing approach and apply a function to (some or all) numerical field such that, for example, the new values are equal to the old values times the length of the new edge divided by the length of the old edge. Something like: x_new = x_old * length_new / length_old (where length_new / length_old is like the proportion of the new edge wrt the old edge).
Is your feature request related to a problem? Please describe. The
to_spatial_subdivison
morpher is used to construct a subdivision of a network by subdividing edges at some interior points. The "new" edges have exactly the same characteristics as the old edges (and there is also a warning message related to this behaviour). I would like to modify the existing approach and apply a function to (some or all) numerical field such that, for example, the new values are equal to the old values times the length of the new edge divided by the length of the old edge. Something like:x_new = x_old * length_new / length_old
(wherelength_new / length_old
is like the proportion of the new edge wrt the old edge).Describe the solution you'd like For example:
Created on 2021-05-21 by the reprex package (v2.0.0)
I'm not sure about the API, but I was thinking of one or two extra parameters into
to_spatial_subdivison
.Describe alternatives you've considered Again, not sure 😅
(btw: feel free to suggest a better title)