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
While fixing bridge conflation (#5325) I found that some ways aren't merged correctly. This happens in the ServiceDiffConflateBounds1Test.sh unit test. The "bridge" error used to mask the duplicate way by running a replace operation on the way even though the way already existed.
This test "converts" two files to the database and then conflates them. Below are the two input .osm files, unit_test_ref.osm is the reference data and unit_test_sec.osm is the secondary data. unit_test_files.zip
In the output both ways 6624 and 217218 are almost identical. 6624 has an additional node and is conflated while 217218 is status 1 (reference data).
In the end, way 217218 is a "duplicate" and should be removed. Prior to #5328 it was because of the bug in the way joiner but now it is preserved and should be eliminated in the merger code.
The text was updated successfully, but these errors were encountered:
It looks like the files in the above test data (unit_test_files.zip) are different from the files referenced by ServiceDiffConflateBounds1Test.sh
In particular, the reference file unit_test_ref.osm contains both ways 6624 and 217218... so when I run the conflation, they both appear in the output (and are mostly duplicates - as noted above)
BUT way 217218 is not in either of the files referenced by the original test: test-files/cmd/glacial/serial/ServiceDiffConflateBoundsTest/Input1.osm or test-files/cmd/glacial/serial/ServiceDiffConflateBoundsTest/Input2.osm
I think the setup here is the result of a squirrely test environment, and in the given case, the duplicate ways are both in the "ref" map. I don't think hoot is expected to find and remove dupes in the ref layer... is it?
While fixing bridge conflation (#5325) I found that some ways aren't merged correctly. This happens in the
ServiceDiffConflateBounds1Test.sh
unit test. The "bridge" error used to mask the duplicate way by running a replace operation on the way even though the way already existed.This test "converts" two files to the database and then conflates them. Below are the two input
.osm
files,unit_test_ref.osm
is the reference data andunit_test_sec.osm
is the secondary data.unit_test_files.zip
This conflation command will exhibit the issue:
In the output both ways
![image](https://user-images.githubusercontent.com/13385275/164316901-d915c22b-62ec-4458-ab6a-74b5e594b139.png)
6624
and217218
are almost identical.6624
has an additional node and is conflated while217218
is status1
(reference data).In the end, way
217218
is a "duplicate" and should be removed. Prior to #5328 it was because of the bug in the way joiner but now it is preserved and should be eliminated in the merger code.The text was updated successfully, but these errors were encountered: