Class UnusualLayerTagsCheck
- java.lang.Object
-
- org.openstreetmap.atlas.checks.base.BaseCheck<java.lang.Long>
-
- org.openstreetmap.atlas.checks.validation.tag.UnusualLayerTagsCheck
-
- All Implemented Interfaces:
java.io.Serializable,Check
public class UnusualLayerTagsCheck extends BaseCheck<java.lang.Long>
ChecksEdge'sLayerTagand flags it if the value is unusual. Also see http://wiki.openstreetmap.org/wiki/Key:layer- See Also:
- Serialized Form
-
-
Field Summary
-
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, PARAMETER_USE_EXTERNAL_DATA
-
-
Constructor Summary
Constructors Constructor Description UnusualLayerTagsCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)Configuration required to construct any Check
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckFlagcreateFlag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object, java.lang.String instruction)A function that collected all Edges for an Edge object and flags it as a Way.protected java.util.Optional<CheckFlag>flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)Flag anEdgeif it'sLayerTagvalue is unusualbooleanvalidCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)Validate if givenAtlasObjectis actually anEdgeand make sure the edge has one of the following tags: tunnel, bridge, layer-
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, flags, getChallenge, getCheckName, getCheckPolygonFilter, getCountries, getDenylistCountries, getFallbackInstructions, getFlaggedIdentifiers, getGlobalPolygonFilter, getLocale, getLocalizedInstruction, getTaskIdentifier, getTaskIdentifier, getUniqueObjectIdentifier, getUniqueOSMIdentifier, isFlagged, logStatus, markAsFlagged, useExternalData, validCheckForCountry
-
-
-
-
Method Detail
-
validCheckForObject
public boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Validate if givenAtlasObjectis actually anEdgeand make sure the edge has one of the following tags: tunnel, bridge, layer- Parameters:
object- TheAtlasObjectyou are checking- Returns:
- true if it is
-
createFlag
protected CheckFlag createFlag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object, java.lang.String instruction)
A function that collected all Edges for an Edge object and flags it as a Way.- Overrides:
createFlagin classBaseCheck<java.lang.Long>- Parameters:
object-instruction-- Returns:
-
-