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

Feature/748 Add AllKeys and AllTags Lua functions #755

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

oobayly
Copy link
Contributor

@oobayly oobayly commented Sep 9, 2024

See #748

This adds two exported functions for Lua:

  • AllKeys - returns an array of all the keys for the OSM tags
  • AllTags - returns a table of all the OSM tags

This allows us to add all the OSM nodes that match a pattern, have a desired prefix, etc without need to know in advance the actual tags.

I have this working on my tilemake fork and it's working quite nicely. I'm not a C++ guy, but I've tried duplicating the code style.

@systemed systemed merged commit a968184 into systemed:master Oct 13, 2024
@systemed
Copy link
Owner

This works really well - thank you! (Sorry for the delay in merging, just catching up with things.)

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

Successfully merging this pull request may close these issues.

2 participants