Commit cff8ff4
committed
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#2821 parent a57fe6c commit cff8ff4
File tree
2 files changed
+10
-2
lines changed- include/osmium/osm
- test/t/osm
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
| |||
0 commit comments