123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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>
|