Skip to content

Q: on merge_stations_lines_by_station_id_and_voltage #180

Answered by davide-f
pz-max asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, I am aware of that problem and it is not an easy answer.
First, don't get scared about the numbers, which often are like X/69000 points, because after 30-40%, it speeds up incredibly.
Anyway that function is slow and the ways to improve the performance relate to different ways to cluster the nodes.
That functions cluster with a tolerance in meters.

The best would be to use a function like groupby on geometries with tolerances. I have searched for it but that's not a trivial think to do.
I thought that we could use a groupby using rounded GPS coordinates, which would be way faster, yet sometimes the accuracy is not equivalent and dependent on the specific GIS location.

If to…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pz-max
Comment options

pz-max Dec 16, 2021
Maintainer Author

Answer selected by pz-max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants