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

Bus error when trying to access nodes of way as a list #19

Closed osmuser63783 closed 9 months ago

osmuser63783 commented 9 months ago

Try this:

from geodesk import *
planet = Features("planet")
myisland = planet("a[wikidata=Q28179207]") # gives https://www.openstreetmap.org/way/22825651, but I don't know of a way to select an object by ID in GQOL
list(myisland.first.nodes)

I get: Bus error (core dumped)

clarisma commented 9 months ago

Another great catch, thanks! I couldn't reproduce it with https://www.openstreetmap.org/way/22825651, but the same bug manifests with a similar item.

clarisma commented 9 months ago

This is caused by a bug in the GOL Tool (clarisma/gol-tool#105, now fixed). The fix is in the snapshot (if you wish to build from source) and will be released as part of GOL Tool 0.1.9. You may need to re-build your GOLs (The bug only affects GOLs with > 16K tiles, so most GOLs built from country/region extracts should be unaffected).

clarisma commented 9 months ago

GOL Tool 0.1.9 has been released. Please re-build affected GOLs.