image/svg+xml
On defining the Inside of an Areaby coding (only) if it lies to the left or right of a way(or to the left or right of concatenable ways, respectively forming ring1 and ring2)
way1
way1
<ring> <way id="1" reverse="false"/></ring>
<ring> <way id="2" reverse="true"/></ring>
way1
way2
way1
way2
<ring> <way id="1" reverse="false"/> <way id="2" reverse="true"/></ring>
<ring> <way id="1" reverse="false"/> <way id="2" reverse="false"/></ring>
way1
way2
way1
way2
<ring> <way id="1" reverse="false"/> <way id="2" reverse="false"/></ring>
<ring> <way id="1" reverse="false"/> <way id="2" reverse="true"/></ring>
way1
way2
way1
way2
<ring> <way id="1" reverse="true"/> <way id="2" reverse="true"/></ring>
<ring> <way id="1" reverse="true"/> <way id="2" reverse="false"/></ring>
way1
way2
way1
way2
<ring> <way id="1" reverse="true"/> <way id="2" reverse="false"/></ring>
<ring> <way id="1" reverse="true"/> <way id="2" reverse="true"/></ring>
Not coding the roles of a ring (inner; outer) implies the need to compute that role using the orientation of a ring(clockwise; counter-clockwise). Without knowing the role it is impossible to differentiate color coded collisions.The role of a ring needs to be stored or computed, e.g. to resolve if area between way1/way2 is inside or not.- Only if the area type does not allow holes (inner rings), it is sufficient to code (left; right) in area objects.