Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (39 sloc) 1.18 KB
<?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>