<div dir="ltr"><div>Regarding my last post: The rule you gave me works but, as I said, it renders any boundary that has a name, including in my case, a township administrative boundary. However, it also renders both inner and outer ways. I'm going to give up on that for now, unless anyone can think of a way to convince mkgmap to render inners separately from outers. It's not a big deal. I can easily live with what I have.</div><div><br></div><div>The non-rendering islands issue was my own fault. I forgot to assign role=inner to the islands in a multipolygon relation they are also a part of. The boundary rendered fine but there was no "land" showing. (The islands are all outers in the Kodiak National Wildlife Refuge relation.) Anyway, all is well now.</div><div><br></div><div>Thanks,</div><div><br></div><div>Dave<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 9:10 PM Dave Swarthout <<a href="mailto:daveswarthout@gmail.com">daveswarthout@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>That does work but it makes all ways that are named boundary relations ( with <span class="gmail-m_-3549516592262804206gmail-im">mkgmap:boundary_name</span> =*) render with the same style. I can live with that but I'm still wondering if there is a way to force it to only operate on inners and only on ways of type boundary=protected_area ? Can I set in "relations" and test in "lines" for a new <span class="gmail-m_-3549516592262804206gmail-im">mkgmap:boundary_name, for example, boundary1_name? <br></span></div><div><span class="gmail-m_-3549516592262804206gmail-im"><br></span></div><div><span class="gmail-m_-3549516592262804206gmail-im">Another interesting problem I just noticed is that simple islands (not multipolygons) whose coastlines are also boundaries do not display as islands, only as members of the refuge they are a part of. The coastlines fail to display whether or not the above code is active or commented out so it must be a separate issue. Take a look at Village Islands inside the Kodiak National Wildlife Refuge. These display as  continuous boundaries with my style [0x10e12], but there is no "land" inside the boundaries, only sea. So, these objects are tagged as place=islet, natural=coastline, but they are also outers in the Kodiak National Wildlife Refuge.<br></span></div><div><span class="gmail-m_-3549516592262804206gmail-im"><br></span></div><div><span class="gmail-m_-3549516592262804206gmail-im">Dave<br></span></div>

</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 6:13 PM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Dave,<br>
<br>
there is code in mkgmap to treat multipolygon relations. See mkgmap:mp_created and mkgmap:stylefilter in <a href="http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf</a><br>
The multipolygon code produces those extra ways only for the outer rings.<br>
If you just want to render the outlines you may use something like<br>
mkgmap:boundary_name=* 0x10e12 resolution 19 continue]<br>
at the top of the lines file.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: Dave Swarthout <<a href="mailto:daveswarthout@gmail.com" target="_blank">daveswarthout@gmail.com</a>><br>
Gesendet: Samstag, 8. Dezember 2018 11:30<br>
An: Gerd Petermann<br>
Cc: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] How can I force the inners of a boundary relation to display?<br>
<br>
Yes, that's confusing to me. I included those snippets to illustrate what I am currently using — maybe you can explain to me stepwise how those boundaries get rendered?<br>
<br>
Is there code inside mkgmap that interprets such directives and applies tags to the outer ways of relations? If there is then I assume the same can be done for those inners. And you would be the one who can best answer that question.<br>
<br>
Thanks for taking the time to explain.<br>
<br>
Dave<br>
<br>
On Sat, Dec 8, 2018 at 5:03 PM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>>> wrote:<br>
Hi Dave,<br>
<br>
in the relations rule you set mkgmap:boundary_name but in the lines rule you don't use that.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>>> im Auftrag von Dave Swarthout <<a href="mailto:daveswarthout@gmail.com" target="_blank">daveswarthout@gmail.com</a><mailto:<a href="mailto:daveswarthout@gmail.com" target="_blank">daveswarthout@gmail.com</a>>><br>
Gesendet: Samstag, 8. Dezember 2018 03:18<br>
An: Development list for mkgmap<br>
Betreff: [mkgmap-dev] How can I force the inners of a boundary relation to      display?<br>
<br>
Hi,<br>
<br>
I've been adding large Alaskan National Wildlife Refuges to OSM. The boundaries weren't displaying so I added a directive in my relations file modeled after the administrative boundary code in the default style that adds a name to protected areas like so:<br>
<br>
(type=boundary | type=multipolygon) & boundary=protected_area & name=*<br>
{ apply<br>
  {<br>
    set mkgmap:boundary_name='$(mkgmap:boundary_name)/${name}' | '${name}';<br>
  }<br>
}<br>
<br>
Then in my lines file I included a line style defined as: boundary=nature_reserve | boundary=protected_area [0x10e12 resolution 19].<br>
<br>
This works well but the lines bounding the inner areas of these relations do not render. How can I make them display?<br>
<br>
Many thanks<br>
<br>
Dave<br>
<br>
--<br>
Dave Swarthout<br>
Homer, Alaska<br>
Chiang Mai, Thailand<br>
Travel Blog at <a href="http://dswarthout.blogspot.com" rel="noreferrer" target="_blank">http://dswarthout.blogspot.com</a><br>
<br>
<br>
--<br>
Dave Swarthout<br>
Homer, Alaska<br>
Chiang Mai, Thailand<br>
Travel Blog at <a href="http://dswarthout.blogspot.com" rel="noreferrer" target="_blank">http://dswarthout.blogspot.com</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-3549516592262804206gmail_signature"><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div>