<div dir="ltr"><div><div>Hi Gerd,<br><br></div>I think the problem with Ottawa is a problem with the data. The current Ottawa boundary describes a municipal level entity composed of the a bunch of former small cities (including the city of Ottawa which is now downtown area of Ottawa).<br><br></div>Looking at Canada in the administrative boundary list and using Toronto as an example, the current Ottawa boundary should be admin level 8. <br><div><br><a href="https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative">https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative</a><br><br>The National Capital Region should be admin level 6 but I can&#39;t find a boundary for it.<br><br><a href="https://en.wikipedia.org/wiki/National_Capital_Region_%28Canada%29">https://en.wikipedia.org/wiki/National_Capital_Region_%28Canada%29</a><br><br></div><div>The suburbs within Ottawa (the former full cities) should be admin level 10. Again there are no boundaries but these suburbs are used officially for addresses. For instance, you can find Kanata listed in the Canada Post postal code lookup app.<br><br><a href="https://www.canadapost.ca/cpo/mc/personal/postalcode/fpc.jsf">https://www.canadapost.ca/cpo/mc/personal/postalcode/fpc.jsf</a><br><br></div><div>It looks like the address setup in mkgmap is incorrect for this setup because admin level 10 is what people use for addresses in the big cities in Canada. I can fix this and send a patch.<br><br></div><div>As for your original question, I think adding the safety catch at the end would be a good idea just in case there are other areas that have broken data.<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">or should we add a one to this block:<br>mkgmap:city!=* &amp; mkgmap:admin_level8=* { set mkgmap:city=&#39;${mkgmap:admin_level8}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level7=* { set mkgmap:city=&#39;${mkgmap:admin_level7}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level9=* { set mkgmap:city=&#39;${mkgmap:admin_level9}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level10=* { set mkgmap:city=&#39;${mkgmap:admin_level10}&#39; } <br>e.g.  a further line with <br>mkgmap:city!=* &amp; mkgmap:admin_level6=* { set mkgmap:city=&#39;${mkgmap:admin_level6}&#39; } <br></blockquote><div> <br></div><div>Nice catch! Thanks, Ben<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 10:13 AM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">


<div dir="ltr">Hi all,<br><br>I noticed that our rules in inc/address do not set<br>mkgmap:city in Ottawa/Ontario.<br>Adding an additional line like the 2nd below solves the problem:<br># Canada<br>mkgmap:country=CAN &amp; mkgmap:region!=* &amp; mkgmap:admin_level4=* { set mkgmap:region=&#39;${mkgmap:admin_level4}&#39; }<br>mkgmap:country=CAN &amp; mkgmap:city!=* &amp; mkgmap:admin_level6=Ottawa { set mkgmap:city=&#39;${mkgmap:admin_level6}&#39; }<br>mkgmap:country=CAN &amp; mkgmap:city!=* &amp; mkgmap:admin_level8=* { set mkgmap:city=&#39;${mkgmap:admin_level8|subst:City of }&#39; }<br><br>or should we add a one to this block:<br>mkgmap:city!=* &amp; mkgmap:admin_level8=* { set mkgmap:city=&#39;${mkgmap:admin_level8}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level7=* { set mkgmap:city=&#39;${mkgmap:admin_level7}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level9=* { set mkgmap:city=&#39;${mkgmap:admin_level9}&#39; } <br>mkgmap:city!=* &amp; mkgmap:admin_level10=* { set mkgmap:city=&#39;${mkgmap:admin_level10}&#39; } <br>e.g.  a further line with <br>mkgmap:city!=* &amp; mkgmap:admin_level6=* { set mkgmap:city=&#39;${mkgmap:admin_level6}&#39; } <br><br><br>I assume that there are more large cities with this problem.<br>Does anybody know how to find them without mkgmap ?<span class="HOEnZb"><font color="#888888"><br><br>Gerd<br></font></span></div>
                                               </div></div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>