Closed theroggy closed 2 years ago
First, thanks for this PR!
I like it how you rotate to the first junction part in the fast_split
function.
I can imagine this reduce the workload in the Dedup class where it tries to merge arcs when possible.
As mentioned in the inline comme t, maybe we can track the type directly during extraction?
Also would be great if this PR only reflect the changes regarding the rotation.
As mentioned in the inline comme t, maybe we can track the type directly during extraction?
It's possible, but I don't think there is an advantage in denormalizing this information in "permanent" structures as we only need access to it via linestring index in this specific code path? I might be wrong, but I also doubt it would give a measurable performance benefit?
Also would be great if this PR only reflect the changes regarding the rotation.
I made the changes independent of possible changes to the join logic.
Thanks for making this PR more compact. All tests pass. Thanks for pushing!
Remark: depends on https://github.com/mattijn/topojson/pull/179 to be merged first!
Support rotating rings in
cut
to avoid unneeded splits happening.I noticed that there is some logic in
dedup
that merges adjacent lines:references #178