You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifiedsmarter-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).
The text was updated successfully, but these errors were encountered:
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.
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."
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).
The text was updated successfully, but these errors were encountered: