forked from osmlab/atlas-checks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invalid tags check highway inconsistency (osmlab#397)
* Highway inconsistency extension and specific instructions - added filters that look for inconsistency in the usage of the highway tag (issue osmlab#377) - made necessary changes so that when passing filters, specific instructions can be passed as well * Testing and documentation update - updated documentation to reflect the addition of specific instructions - updated highway inconsistency instructions - minor edits: removed magic number, fixed default instructions and their usage - added tests for the new cases * Highway inconsistency filter fix - fixed taggable filters to reflect the expected results * Removed code smell in read config method - split the readConfigurationFilter method in two, one for simple and one for regex filters
- Loading branch information
Showing
9 changed files
with
220 additions
and
84 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
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
190 changes: 122 additions & 68 deletions
190
src/main/java/org/openstreetmap/atlas/checks/validation/tag/InvalidTagsCheck.java
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...in/resources/org/openstreetmap/atlas/checks/validation/tag/invalid-tags-check-filter.json
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...streetmap/atlas/checks/validation/tag/invalid-tags-check-inconsistent-highway-filter.json
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,18 @@ | ||
{ | ||
"filters": [ | ||
"junction->*&junction->!yes&highway->!", | ||
"oneway->*&highway->!&railway->!&aerialway->!&waterway->!&aeroway->!&piste:type->!", | ||
"highway->!&disused:highway->!&abandoned:highway->!&construction:highway->!&proposed:highway->!&planned:highway->!&leisure->!track&tracktype->*||lanes->*", | ||
"highway->emergency_access_point&ref->!", | ||
"footway->sidewalk&highway->!footway&highway->!path&highway->!construction", | ||
"highway->motorway&ref->!&nat_ref->!&int_ref->!&noref->!" | ||
], | ||
"instructions": [ | ||
"The element has a junction tag but no highway tag.", | ||
"The element has a oneway tag but no highway tag.", | ||
"The element is missing a highway tag.", | ||
"The element is an emergency access point but has no ref tag.", | ||
"The element is a footway=sidewalk but has no appropriate highway tag.", | ||
"The element is a motorway but has no ref tag." | ||
] | ||
} |
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
6 changes: 1 addition & 5 deletions
6
src/main/resources/org/openstreetmap/atlas/checks/validation/tag/invalidTags.txt
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
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