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

Can't do intersects with anonymous nodes #44

Closed osmuser63783 closed 7 months ago

osmuser63783 commented 7 months ago

This works:

highways = planet("w[highway]")
restaurants = planet("n[amenity=restaurant]")
highways.intersects(restaurants[0])

This doesn't:

highways.intersects(highways[0].nodes[0])

TypeError: Expected geometric object instead of geodesk.AnonymousNode

NB: I create an issue when I find a bug or something unexpected (undocumented) happens. That doesn't mean I think this is a killer feature :-) In this case I only tried intersects because parents didn't work for the anonymous nodes.

clarisma commented 7 months ago

Thanks, all these reports are very helpful and much appreciated, even for seemingly minor issues.