Class FloatingEdgeCheck
- java.lang.Object
-
- org.openstreetmap.atlas.checks.base.BaseCheck<java.lang.Long>
-
- org.openstreetmap.atlas.checks.validation.linear.edges.FloatingEdgeCheck
-
- All Implemented Interfaces:
java.io.Serializable,Check
public class FloatingEdgeCheck extends BaseCheck<java.lang.Long>
This check will look for any edges outside of airport boundaries that do not contain any incoming or outgoing edges. The appearance on the map would be that of a road simply floating in the middle of nowhere. No way for any navigation, no ability to enter theEdge(road) from any point and no way to exit it. To resolve the issue a mapper would either remove the edge as invalid or connect it to a connected set of edges.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDISTANCE_MAXIMUM_KILOMETERS_DEFAULTstatic doubleDISTANCE_MINIMUM_METERS_DEFAULT-
Fields inherited from class org.openstreetmap.atlas.checks.base.BaseCheck
PARAMETER_ACCEPT_PIERS, PARAMETER_CHALLENGE, PARAMETER_DENYLIST_COUNTRIES, PARAMETER_FLAG, PARAMETER_PERMITLIST_COUNTRIES, PARAMETER_PERMITLIST_TAGS
-
-
Constructor Summary
Constructors Constructor Description FloatingEdgeCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)Default constructor defined by theBaseCheckrequired to instantiate the Check within the Atlas Checks framework
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<CheckFlag>flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)The primary function that will check to see if the current edge is a floating edgeprotected java.util.List<java.lang.String>getFallbackInstructions()Method to implement for inheriting checks to return the default set of instruction formats that will be the last resort inBaseCheck.getLocalizedInstruction(int, Object[])booleanvalidCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)Checks if the supplied object is ofItemTypeEdgeand that it is the MainEdge and whether a car can navigate on the edge.-
Methods inherited from class org.openstreetmap.atlas.checks.base.BaseCheck
acceptPier, check, checkObjectFilter, clear, clearFlaggedIdentifiers, configurationKey, configurationKey, configurationValue, configurationValue, createFlag, createFlag, createFlag, createFlag, createFlag, createFlag, createFlag, createFlag, flags, getChallenge, getCheckName, getCheckPolygonFilter, getCountries, getDenylistCountries, getFlaggedIdentifiers, getGlobalPolygonFilter, getLocale, getLocalizedInstruction, getTaskIdentifier, getTaskIdentifier, getUniqueObjectIdentifier, getUniqueOSMIdentifier, isFlagged, logStatus, markAsFlagged, validCheckForCountry
-
-
-
-
Field Detail
-
DISTANCE_MAXIMUM_KILOMETERS_DEFAULT
public static final double DISTANCE_MAXIMUM_KILOMETERS_DEFAULT
- See Also:
- Constant Field Values
-
DISTANCE_MINIMUM_METERS_DEFAULT
public static final double DISTANCE_MINIMUM_METERS_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FloatingEdgeCheck
public FloatingEdgeCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
Default constructor defined by theBaseCheckrequired to instantiate the Check within the Atlas Checks framework- Parameters:
configuration- the configuration supplied by the framework containing custom properties for the floating edge check
-
-
Method Detail
-
validCheckForObject
public boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Checks if the supplied object is ofItemTypeEdgeand that it is the MainEdge and whether a car can navigate on the edge. So we would ignore any pedestrian paths in this particular check. AnEdgecontains a main edge and a reserve edge, unless it is a oneway edge in which case it will only contain the main edge. Either way we want to ignore the reverse edge so that we don't produce duplicate flags for what is essentially the same feature.- Parameters:
object- theAtlasObjectyou are checking- Returns:
trueif matches the restrictions described above
-
flag
protected java.util.Optional<CheckFlag> flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
The primary function that will check to see if the current edge is a floating edge
-
getFallbackInstructions
protected java.util.List<java.lang.String> getFallbackInstructions()
Description copied from class:BaseCheckMethod to implement for inheriting checks to return the default set of instruction formats that will be the last resort inBaseCheck.getLocalizedInstruction(int, Object[])- Overrides:
getFallbackInstructionsin classBaseCheck<java.lang.Long>- Returns:
- The set of instructions to fall back to if configuration results in none.
-
-