Skip to content

Commit 77a9277

Browse files
smaheshwaramsugandhi
andauthored
Overlapping edge check bug fix. (#268)
* OverlappingEdgeCheck, marking overlapping edges on atlas identifier instead of osm identifier. * OverlappingEdgeCheck, replacing getIdentifier with getOsmIdentifier for localized instruction. * OverlappingEdgeCheck, replacing way Ids list to contain atlas identifiers. Co-authored-by: sugandhi <[email protected]>
1 parent 241f6a3 commit 77a9277

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/openstreetmap/atlas/checks/validation/linear/edges/OverlappingEdgeCheck.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public boolean validCheckForObject(final AtlasObject object)
7878
@Override
7979
protected Optional<CheckFlag> flag(final AtlasObject object)
8080
{
81-
if (!this.isFlagged(object.getOsmIdentifier()))
81+
if (!this.isFlagged(object.getIdentifier()))
8282
{
8383
final Atlas atlas = object.getAtlas();
8484
final Set<AtlasObject> overlappingItems = new HashSet<>();
@@ -103,10 +103,10 @@ protected Optional<CheckFlag> flag(final AtlasObject object)
103103
}
104104
if (!overlappingItems.isEmpty())
105105
{
106-
this.markAsFlagged(object.getOsmIdentifier());
106+
this.markAsFlagged(object.getIdentifier());
107107
// Mark overlapping objects as flagged
108108
overlappingItems
109-
.forEach(overlapEdge -> this.markAsFlagged(overlapEdge.getOsmIdentifier()));
109+
.forEach(overlapEdge -> this.markAsFlagged(overlapEdge.getIdentifier()));
110110
final CheckFlag flag = this.createFlag(overlappingItems,
111111
this.getLocalizedInstruction(0, object.getOsmIdentifier(),
112112
new StringList(osmIdentifiers(overlappingItems)).join(", ")));
@@ -198,7 +198,7 @@ private boolean isPartOfClosedWay(final Edge object)
198198

199199
private Predicate<Edge> notIn(final AtlasObject object)
200200
{
201-
return edge -> !this.isFlagged(object.getOsmIdentifier());
201+
return edge -> !this.isFlagged(object.getIdentifier());
202202
}
203203

204204
/**

0 commit comments

Comments
 (0)