Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when querying tagless nodes #51

Open
brawer opened this issue Sep 25, 2024 · 1 comment
Open

Crash when querying tagless nodes #51

brawer opened this issue Sep 25, 2024 · 1 comment

Comments

@brawer
Copy link
Contributor

brawer commented Sep 25, 2024

When looking up a node such 6058479131, which has only coordinates but no tags, the osmx query tool currently crashes:

$  curl https://osmx1.protomaps.com/results/b1bbdd89-12e6-4390-b9a2-42a54fc65948.osm.pbf >sample.osm.pbf
$ ./osmx expand sample.osm.pbf sample.osmx
$ ./osmx query sample.osmx node 6058479131
(7.4311092,46.9522392)
MDB_NOTFOUND: No matching key/data pair found, file /Users/sascha/src/OSMExpress/src/storage.cpp, line 74.
Abort trap: 6
@bdon
Copy link
Owner

bdon commented Sep 25, 2024

I think this is just a CLI UI issue and not an underlying data problem - it should be fine for a node ID to exist in the Locations db and not in the Nodes db, that means it has no tags, so check for existence in Nodes and ignore if not found. PR would be welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants