Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Order deleted objects after visible ones in reverse id order
osmium::object_order_type_id_reverse_version is used to order OSM objects for merging or applying diffs. If the diffs are from extracts, it can happen that there are multiple objects with the same type, id, version, and timestamp but different deleted flag. In that case the merged diff should contain the visible object, not the deleted one, because the deleted one isn't really deleted, just outside the area of the extract. To achieve this, osmium::object_order_type_id_reverse_version must order visible objects before deleted ones if all else stays the same. See osmcode/osmium-tool#282
- Loading branch information