-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Way Section Exceeding Limit Bug (#203)
* Adding Ice Road Tag * Adding public access tag value * Reproducing the issue in old and new flow * Adding boundary files for tests * Renaming method to stay consistent * Removing relations, they're not needed for the point of the test * Updating tests, relations do matter, minor simplification in code * Fixing way sectioning exceeding limit bug * Reducing test atlas to bare minimum to reproduce issue
- Loading branch information
Showing
5 changed files
with
2,106 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/org/openstreetmap/atlas/tags/SyntheticInvalidWaySectionTag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.openstreetmap.atlas.tags; | ||
|
||
import org.openstreetmap.atlas.tags.annotations.Tag; | ||
import org.openstreetmap.atlas.tags.annotations.TagKey; | ||
import org.openstreetmap.atlas.tags.annotations.validation.Validators; | ||
|
||
/** | ||
* Tag identifying an Atlas Edge that was the remnant of way-sectioning that exceeded the maximum | ||
* 999 slices. As a result, this edge contains the rest of the un-sectioned OSM Way. This usually | ||
* indicates a data error and is NOT an OSM tag. | ||
* | ||
* @author mgostintsev | ||
*/ | ||
@Tag(synthetic = true) | ||
public enum SyntheticInvalidWaySectionTag | ||
{ | ||
YES; | ||
|
||
@TagKey | ||
public static final String KEY = "synthetic_invalid_way_section"; | ||
|
||
public static boolean isYes(final Taggable taggable) | ||
{ | ||
return Validators.isOfType(taggable, SyntheticInvalidWaySectionTag.class, YES); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,956 changes: 1,956 additions & 0 deletions
1,956
.../openstreetmap/atlas/geography/atlas/raw/sectioning/wayExceedingSectioningLimit.atlas.txt
Large diffs are not rendered by default.
Oops, something went wrong.