public class FloatingEdgeCheck extends BaseCheck<java.lang.Long>
Edge (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.| Modifier and Type | Field and Description |
|---|---|
static double |
DISTANCE_MAXIMUM_KILOMETERS_DEFAULT |
static double |
DISTANCE_MINIMUM_METERS_DEFAULT |
PARAMETER_ACCEPT_PIERS, PARAMETER_BLACKLIST_COUNTRIES, PARAMETER_CHALLENGE, PARAMETER_FLAG, PARAMETER_WHITELIST_COUNTRIES, PARAMETER_WHITELIST_TAGS| Constructor and Description |
|---|
FloatingEdgeCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
Default constructor defined by the
BaseCheck required to instantiate the Check within
the Atlas Checks framework |
| Modifier and Type | Method and 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 edge
|
protected 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 in
BaseCheck.getLocalizedInstruction(int, Object[]) |
boolean |
validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Checks if the supplied object is of
ItemType Edge and that it is the
MasterEdge and whether a car can navigate on the edge. |
acceptPier, check, checkObjectFilter, clear, clearFlaggedIdentifiers, configurationKey, configurationKey, configurationValue, configurationValue, createFlag, createFlag, createFlag, createFlag, flags, getBlacklistCountries, getChallenge, getCheckName, getCountries, getFlaggedIdentifiers, getLocale, getLocalizedInstruction, getTaskIdentifier, getTaskIdentifier, getUniqueObjectIdentifier, getUniqueOSMIdentifier, isFlagged, logStatus, markAsFlagged, validCheckForCountrypublic static final double DISTANCE_MAXIMUM_KILOMETERS_DEFAULT
public static final double DISTANCE_MINIMUM_METERS_DEFAULT
public FloatingEdgeCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
BaseCheck required to instantiate the Check within
the Atlas Checks frameworkconfiguration - the configuration supplied by the framework containing custom properties for the
floating edge checkpublic boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
ItemType Edge and that it is the
MasterEdge and whether a car can navigate on the edge. So we would ignore any pedestrian
paths in this particular check. An Edge contains a master edge and a reserve edge,
unless it is a oneway edge in which case it will only contain the master 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.object - the AtlasObject you are checkingtrue if matches the restrictions described aboveprotected java.util.Optional<CheckFlag> flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
protected java.util.List<java.lang.String> getFallbackInstructions()
BaseCheckBaseCheck.getLocalizedInstruction(int, Object[])getFallbackInstructions in class BaseCheck<java.lang.Long>