clarisma / geodesk-py

Fast and storage-efficient spatial database engine for OpenStreetMap data
https://docs.geodesk.com/python
GNU Lesser General Public License v3.0
36 stars 0 forks source link

Segmentation fault when iterating over empty feature set returned by `members_of` #18

Closed osmuser63783 closed 11 months ago

osmuser63783 commented 11 months ago

I've been trying out this library and I find it's very fast and easy to use!

However I've found that the following code causes a segmentation fault (contrived example to demonstrate the problem).

from geodesk import *
planet = Features("planet")
nodes = planet("n")
areas = planet("a")

for area in areas.members_of(nodes[0]):
    print(area)

Calling areas.members_of(nodes[0]).count or first or list(...) etc. also does the same.

clarisma commented 11 months ago

Thanks for catching this! A fix is on its way...