[OSM-dev] Best way to select from a region
Roland Olbricht
roland.olbricht at gmx.de
Thu Sep 3 18:20:32 BST 2009
> Off topic, but what might be a reason for a boundary relation (such as
> 224459) not appearing in any coords-query, for locations inside and
> outside it alike, and returning no data for an area-query, but also no
> error? I don't suppose node number limit?
<relation id="224495">
<member type="way" ref="39907923" role="outer"/>
<member type="way" ref="39907925" role="inner"/>
<tag k="type" v="multipolygon"/>
</relation>
It doesn't have a name. The possibly applying rule
<osm-script name="Area::Create_from_multipolygon" version="2">
<query type="relation">
<has-kv k="type" v="multipolygon"/>
<has-kv k="name"/> <!-- * -->
</query>
[...]
</osm-script>
requires a name (see the line with the *). The reason is that an area without
a name would not be very informative. But if you want those relations also
appear, I'll change the rule.
Cheers,
Roland
More information about the dev
mailing list