<div dir="ltr"><div><div><div><div>You need to extract boundary relations data before telling mkgmap to process it.<br><br></div>Use osmconvert and osmfilter to do that. Then use mkgmap&#39;s built in boundary processor to process it. Lastly use the bounds argument when compiling.<br>
<br><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">osmconvert xxx.osm.pbf --out-o5m &gt;xxx.o5m</span><br>
<span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">osmfilter xxx.o5m --keep-nodes</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255)">=</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> --keep-ways-relations</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255)">=</span><span class="" style="color:rgb(221,17,68);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255)">&quot;boundary=administrative =postal_code postal_code=&quot;</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> --out-o5m &gt; xxx-boundaries.o5m</span><br>
<span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">java -cp mkgmap.jar uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor xxx-boundaries.o5m boundary</span><br>
<br></div>then<br><br></div>add argument <span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">bounds=&lt;boundary folder location&gt;<br>
<br></span></div><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:16.8px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">example on <a href="https://github.com/schadow1/osmphgps">https://github.com/schadow1/osmphgps</a><br>
</span><div><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ervin M.<br><b>Schadow1 Expeditions</b> - A Filipino must not be a stranger to his own motherland.<div><a href="http://www.s1expeditions.com" target="_blank">http://www.s1expeditions.com</a></div>
</div></div>
<br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 12:15 AM, Nelson A. de Oliveira <span dir="ltr">&lt;<a href="mailto:naoliv@gmail.com" target="_blank">naoliv@gmail.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 class="">On Tue, Sep 2, 2014 at 2:48 AM, Marko Mäkelä &lt;<a href="mailto:marko.makela@iki.fi">marko.makela@iki.fi</a>&gt; wrote:<br>
&gt; On Mon, Sep 01, 2014 at 09:05:44PM -0300, Nelson A. de Oliveira wrote:<br>
&gt;&gt;<br>
&gt;&gt; Does mkgmap support administrative boundaries defined only by<br>
&gt;&gt; relations? (ie, there isn&#39;t any kind of tag in the ways)<br>
&gt;<br>
&gt;<br>
&gt; This at least used to work. I wrote the &quot;apply&quot; rules for getting names on<br>
&gt; the boundaries from the relations, separated by &quot;/&quot; or &quot;,&quot;. It might have<br>
&gt; been broken since I wrote the code.<br>
<br>
</div>Basically what <a href="https://github.com/openstreetmap/mkgmap/blob/master/resources/styles/default/relations#L19" target="_blank">https://github.com/openstreetmap/mkgmap/blob/master/resources/styles/default/relations#L19</a><br>

does?<br>
Is it necessary to apply other properties, like admin_level?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div></div>