forked from drolbr/Overpass-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
some_rules.xml
47 lines (39 loc) · 1.18 KB
/
some_rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<not-osm>
<osm-script name="Area::Create_from_admin_level" version="1">
<query type="relation">
<has-kv k="admin_level"/>
<has-kv k="name"/>
</query>
<foreach into="rel">
<union>
<recurse type="relation-way" from="rel"/>
<recurse type="way-node"/>
</union>
<make-area pivot="rel" into="odd"/>
<detect-odd-nodes into="odd"/>
<foreach from="odd" into="i">
<union><item set="i"/><item set="rel"/></union>
<conflict>In <item set="rel"/>, the <item set="i"/> is contained in an odd number of segments.</conflict>
</foreach>
</foreach>
</osm-script>
<osm-script name="Area::Create_from_multipolygon" version="2">
<query type="relation">
<has-kv k="type" v="multipolygon"/>
<has-kv k="name"/>
</query>
<foreach into="rel">
<union>
<recurse type="relation-way" from="rel"/>
<recurse type="way-node"/>
</union>
<make-area pivot="rel" into="odd"/>
<detect-odd-nodes into="odd"/>
<foreach from="odd" into="i">
<union><item set="i"/><item set="rel"/></union>
<conflict>In <item set="rel"/>, the <item set="i"/> is contained in an odd number of segments.</conflict>
</foreach>
</foreach>
</osm-script>
</not-osm>