public class UnusualLayerTagsCheck extends BaseCheck<java.lang.Long>
Edge's LayerTag and flags it if the value is unusual. Also see
http://wiki.openstreetmap.org/wiki/Key:layer| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BRIDGE_INSTRUCTION |
static java.util.List<java.lang.String> |
FALLBACK_INSTRUCTIONS |
static java.lang.String |
INVALID_LAYER_INSTRUCTION |
static java.lang.String |
JUNCTION_INSTRUCTION |
static java.lang.String |
TUNNEL_INSTRUCTION |
PARAMETER_ACCEPT_PIERS, PARAMETER_BLACKLIST_COUNTRIES, PARAMETER_CHALLENGE, PARAMETER_FLAG, PARAMETER_WHITELIST_COUNTRIES, PARAMETER_WHITELIST_TAGS| Constructor and Description |
|---|
UnusualLayerTagsCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
Configuration required to construct any Check
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<CheckFlag> |
flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Flag an
Edge if it's LayerTag value is unusual |
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)
Validate if given
AtlasObject is actually an Edge and make sure the edge has
one of the following tags: tunnel, bridge, layer |
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 java.lang.String INVALID_LAYER_INSTRUCTION
public static final java.lang.String JUNCTION_INSTRUCTION
public static final java.lang.String BRIDGE_INSTRUCTION
public static final java.lang.String TUNNEL_INSTRUCTION
public static final java.util.List<java.lang.String> FALLBACK_INSTRUCTIONS
public UnusualLayerTagsCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
configuration - Configurationpublic boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
AtlasObject is actually an Edge and make sure the edge has
one of the following tags: tunnel, bridge, layerobject - The AtlasObject you are checkingprotected java.util.Optional<CheckFlag> flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Edge if it's LayerTag value is unusualprotected java.util.List<java.lang.String> getFallbackInstructions()
BaseCheckBaseCheck.getLocalizedInstruction(int, Object[])getFallbackInstructions in class BaseCheck<java.lang.Long>