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
Not quite shure what is the plan. There is a pull request which contains most of the discussion #1271 but that is not an issue. And partly nearest neighbour indexing is addressed in #1455. Original related issue seems to be #1096
My suggestion would be to do all changes in geopandas to take the differences between geos and rtree into consideration.
There were some issues with that in pygeos only 1 nearest neighbour is returned, not many if they have same distance:
discussion in issue (pygeos/pygeos#110), and pygeos pull request (pygeos/pygeos#111)
Part of the idea was as it seems to have a method with two additional inputs, N_neighbours and maxdistance.(#1271)
This is relatively easily implemented with existing methods in geopandas. And through those it would also work with both rtree and strtree. For pygeos using implementation could look like this:
and for rtree it can (but does not have to) be different, maybe usefully so.
Performance wise this might be a problem with big maxdistance (Too many intersections to calculate distances for) In rtree it can be first filtered by N nearest neighbours and then by distance).
What about the other performance issues with building the tree mentioned in #1271@martinfleis? Or is this solved by using the strtree from pygeos in case of big geometries?
Any opinions about that?
The text was updated successfully, but these errors were encountered:
I still think this should be implemented using the algorithm proposed in pygeos/pygeos#111 (comment) or something similar. Ideally in PyGeos/shapely since it'll be much faster.
Regarding the other two inputs proposed in #1271, I think those only make sense in the context of the rtree solution.
Not quite shure what is the plan. There is a pull request which contains most of the discussion #1271 but that is not an issue. And partly nearest neighbour indexing is addressed in #1455. Original related issue seems to be #1096
My suggestion would be to do all changes in geopandas to take the differences between geos and rtree into consideration.
There were some issues with that in pygeos only 1 nearest neighbour is returned, not many if they have same distance:
discussion in issue (pygeos/pygeos#110), and pygeos pull request (pygeos/pygeos#111)
Part of the idea was as it seems to have a method with two additional inputs, N_neighbours and maxdistance.(#1271)
This is relatively easily implemented with existing methods in geopandas. And through those it would also work with both rtree and strtree. For pygeos using implementation could look like this:
and for rtree it can (but does not have to) be different, maybe usefully so.
Performance wise this might be a problem with big maxdistance (Too many intersections to calculate distances for) In rtree it can be first filtered by N nearest neighbours and then by distance).
What about the other performance issues with building the tree mentioned in #1271 @martinfleis? Or is this solved by using the strtree from pygeos in case of big geometries?
Any opinions about that?
The text was updated successfully, but these errors were encountered: