Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SignPostCheck with off/on ramp specific logic #25

Merged
merged 1 commit into from
Mar 14, 2018

Conversation

mertemin
Copy link
Contributor

This PR updates SignPostCheck for flexibility and easier maintenance. In addition to off ramps, now on ramps are flagged as well. However, on-ramps are treated differently and their start location is found and flagged rather than where they connect to highway.

  • Check logic is now driven by configuration. That makes it flexible. Any additional highway types could be added, or existing ones could be ignored without a code change.
  • I removed additional missingTags and offendingObjects sets that were used to track objects and tags. I am now relying on CheckFlag class directly. At the end, if instance doesn't have anything flagged, we'll skip flag operation.
  • While doing this I hit a bug in CheckFlag class. Methods addObject and addObjects had different behavior. I updated addObjects to call addObject.

@mgcuthbert mgcuthbert merged commit 909a2dc into osmlab:dev Mar 14, 2018
mgcuthbert pushed a commit to mgcuthbert/atlas-checks that referenced this pull request Apr 16, 2018
commit 95792b9
Author: Michael Cuthbert <[email protected]>
Date:   Tue Mar 20 08:54:00 2018 -0700

    Merging dev branch from open source (osmlab#79)

    * Remove SparkFileHelper, SparkFileOutput, SparkFilePath and reference the ones in atlas-generator (osmlab#22)

    * Configuration overrides for countries and groups of countries in Integrity Checks (osmlab#20)

    * Override for groups and countires in Integrity Checks Configuration

    * reformat

    * Update Dependency for Atlas Checks to Enable Build

    * Changes made for better logging and validating

    * Changes made for reviewers

    * Adding UnusualLayerTagCheck

    * Adding UnusualLayerTagCheck (osmlab#24)

    * Update SignPostCheck with off/on ramp specific logic (osmlab#25)

    * Roundabout Valence Check (osmlab#26)

    * ok

    * okay

    * fixing commits

    * still fixing commits

    * rolling forward again

    * roll forward

    * rolling forward

    * roll forward

    * removed some conditionals as the data structures inherently check these

    * updated function name to make it more clear

    * get master edge

    * updates as per danielduhh

    * removed Message Format import

    * formatting long in instructions; handle 2 way roundabouts

    * fixed string for space in instructions

    * change for car navigable edges to count toward valence only

    * remove extra lines

    * updates to unit tests to account for car navigable roads

    * updates to the documentation and made a lambda into reference method

    * fix for config values

    * fix config max threshold to 14

    * remove ghana file

    * changes to comments to include greater than or equal to and info about configuration;

    * set upper in code to 10

    * moved to linear.edges, add unit tests

    * ok

    * okay

    * fixing commits

    * still fixing commits

    * rolling forward again

    * roll forward

    * rolling forward

    * roll forward

    * removed some conditionals as the data structures inherently check these

    * updated function name to make it more clear

    * get master edge

    * updates as per danielduhh

    * removed Message Format import

    * formatting long in instructions; handle 2 way roundabouts

    * fixed string for space in instructions

    * change for car navigable edges to count toward valence only

    * remove extra lines

    * updates to unit tests to account for car navigable roads

    * updates to the documentation and made a lambda into reference method

    * fix for config values

    * fix config max threshold to 14

    * remove ghana file

    * changes to comments to include greater than or equal to and info about configuration;

    * set upper in code to 10

    * moved to linear.edges, add unit tests

    * added challenge information

    * changes to config

    * refactoring of flag and getAllRoundaboutEdge methods; updates to unit tests

    * flag roundabout and not connected non-roundabout edges when valence is 1

    * updated link in documentation

    * updated input params for getAllRoundaboutEdges in docs

    * updates to variables, preliminary filtering

    * gradle build fix

    * SelfIntersectingPolylineCheck enhancements (osmlab#23)

    * updated check requirements
    detailed instructions

    * clean up tests & variables/comments

    * variable name cleaup

    * typo

    * utilize configuration for filtering ineligible highway tags
    incorporate configuration in unit tests

    * move eligible highways filter to configuration

    * refactor unit tests for extensibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants