This check identifies relations without relation type. In OSM, a Relation suppose to have one of proposed relation Type.
The following examples illustrate two cases where a Relation is missing relation type.
- This relation id:7508794 is missing "multipolygon" relation type.
- This relation id:9769731 is missing "boundary" relation type.
In Atlas, OSM elements are represented as Edges, Points, Lines, Nodes & Relations; in our case, we’re working with Relations.
Our first goal is to validate the incoming Atlas Object. We use some preliminary filtering to target Relation objects. Therefore, we use:
- Must be a Relation
- Must not have a Relation Type tag
- Must not be a "One Member Relation"
- Must not have disused:type or disabled:type tags reference
After the preliminary filtering, Relation will be flagged.
To learn more about the code, please look at the comments in the source code for the check. MissingRelationTypeCheck.java