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

make id's global in buffer schema #1

Open
mk30 opened this issue Mar 24, 2021 · 1 comment
Open

make id's global in buffer schema #1

mk30 opened this issue Mar 24, 2021 · 1 comment

Comments

@mk30
Copy link
Contributor

mk30 commented Mar 24, 2021

right now, the same id can exist under a node, way, and relation. buffer schema should be modified to make id's global.

@mk30
Copy link
Contributor Author

mk30 commented Mar 24, 2021

can: multiply id by 3 and add 0 for node, 1 for way, 2 for relation.

to get out the original id: divide enhanced id by 3 and take the floor.
to get the type: enhanced id modulo 3.

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

1 participant