Class RoundaboutMissingTagCheck
- java.lang.Object
-
- org.openstreetmap.atlas.checks.base.BaseCheck<java.lang.Long>
-
- org.openstreetmap.atlas.checks.validation.linear.edges.RoundaboutMissingTagCheck
-
- All Implemented Interfaces:
java.io.Serializable,Check
public class RoundaboutMissingTagCheck extends BaseCheck<java.lang.Long>
Flags edges that are closed and round shaped without junction=roundabout tag and have minimum of two intersections with navigable roadsMINIMUM_INTERSECTIONconnections. See https://wiki.openstreetmap.org/wiki/Tag:junction%3Droundabout for more information about roundabouts. This check is AutoFix Candidate.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMISSING_JUNCTION_TAG_INSTRUCTION-
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 RoundaboutMissingTagCheck(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)Default constructor
-
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)Flags anEdgeis its circular shape and connected to at leastMINIMUM_INTERSECTIONnavigable roads.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 inBaseCheck.getLocalizedInstruction(int, Object[])booleanvalidCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)Validates if givenAtlasObjectis actually anEdgeand is a potential roundabout and also corresponding OSM identifier shouldn't be flagged before (this is for avoiding duplicate flags)-
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, useExternalData, validCheckForCountry
-
-
-
-
Field Detail
-
MISSING_JUNCTION_TAG_INSTRUCTION
public static final java.lang.String MISSING_JUNCTION_TAG_INSTRUCTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
validCheckForObject
public boolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Validates if givenAtlasObjectis actually anEdgeand is a potential roundabout and also corresponding OSM identifier shouldn't be flagged before (this is for avoiding duplicate flags)- Parameters:
object- TheAtlasObjectyou are checking- Returns:
- true if it is
-
flag
protected java.util.Optional<CheckFlag> flag(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Flags anEdgeis its circular shape and connected to at leastMINIMUM_INTERSECTIONnavigable roads.Edgedoesn't have junction=roundabout or area=yes tags.
-
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.
-
-