<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-05-13 14:20 GMT+02:00 Ilya Zverev <span dir="ltr"><<a href="mailto:zverik@textual.ru" target="_blank">zverik@textual.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div id=":4w3" class="" style="overflow:hidden">admin_level on place nodes surely duplicates admin_level tag value<br>
from one of relations which contain that node, but is that a bad<br>
thing?<br>
<br>
Did you try to calculate admin_level for a place in osm2pgsql<br>
database? I've spent two hours now trying to construct and optimize an<br>
SQL query for that, and seeing it takes at least 20 seconds for a<br>
tile, I'd prefer having admin_level tag on places.<br>
</div></blockquote></div><br><br><br></div><div class="gmail_extra">admin_level has no real "definition" in the wiki what it is supposed to express: the key link redirects to boundary=administrative:<br><a href="http://wiki.openstreetmap.org/wiki/Key:admin_level#admin_level">http://wiki.openstreetmap.org/wiki/Key:admin_level#admin_level</a><br>
<br></div><div class="gmail_extra">This could already be taken as a statement: admin_level is there to express the admin_level of an administrative entity (this text is not there in the wiki right now).<br><br></div><div class="gmail_extra">
IMHO "place"s are orthogonal to administrative entities. They can sometimes cover the same area, in other cases they don't. Some places are administrative centers for an administrative entity, others aren't.<br>
<br>Now there is also a key "capital" that can tell the administrative importance for a place (it will contain the admin_level of the highest administrative entity (=lowest admin level number) for which a place is the administration centre), so no real need to have an admin_level with duplicating values on these places as well. I think capital is a better key for places then "admin_level", as any place will "have" lots of admin_levels (e.g. 2 when it is inside a country) so semantically it doesn't make a lot of sense.<br>
<br></div><div class="gmail_extra">cheers,<br>Martin<br></div></div>