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

smarter-sort.py doesn't sort elements according to documentation #7

Open
Davis-Klavins opened this issue Oct 13, 2023 · 2 comments
Open

Comments

@Davis-Klavins
Copy link

Modified smarter-sort.py so that it at least runs on Windows (Python 2.7), but it doesn't sort elements according to the documentation - deleted nodes are before deleted ways and OsmChange file obviously can't be uploaded (error 412: Precondition Failed (b'Precondition failed: Node [node No.] is still used by ways [way No.].')). I can provide sample OsmChange file, if anybody is willing to investigate (no responses to issues over two years here).

Davis-Klavins added a commit to Davis-Klavins/osm-latvia-bot that referenced this issue Oct 13, 2023
Commented due to bug (grigory-rechistov/osm-bulk-upload#7) in smarter-sort.py. Deleted elements that were part of ways and relations should be fixed manually by inspecting ways_relations_del.
@grigory-rechistov
Copy link
Owner

I am surprised some people are still using this code at all :-)

@Davis-Klavins
Copy link
Author

Any existing alternatives that would sort OsmChange files according to upload needs? Both osmium-sort and Osmosis sort only this way: "Objects are sorted by type, ID, and version. IDs are sorted negative IDs first, then positive IDs, both ordered by their absolute values."

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