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

Anonymous nodes don't return ways as parents (?) #43

Closed osmuser63783 closed 7 months ago

osmuser63783 commented 7 months ago

I think I've stumbled upon another bug.

highways = planet("w[highway]")
highways[0].nodes[0].parents.count

This gives 0. This can't be true, at least highways[0] should be a parent.

In fact a lot of anonymous nodes seem to return zero parents.

for i in highways[0].nodes:
    print(i.parents.count)

I've managed to find a node that reports it has a parent by doing:

for h in highways:
    for n in h.nodes:
        if n.parents.count != 0:
            print("Found one")
            print(n)

But that parent is a relation, not a way.

clarisma commented 7 months ago

Thanks, nice catch! Fix is coming...