<div dir="ltr"><div>Thank you,</div><div>I will try it and let you know how it goes.</div><div><br></div><div>Thanks</div><div>Joao</div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><br>---------- Forwarded message ----------<br>From: Ticker Berkin <<a href="mailto:rwb-mkgmap@jagit.co.uk" target="_blank">rwb-mkgmap@jagit.co.uk</a>><br>To: Development list for mkgmap <<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>Cc: <br>Bcc: <br>Date: Tue, 01 Sep 2020 10:18:02 +0100<br>Subject: Re: [mkgmap-dev] Excluding countries from map build or reduce details for some countries.<br>Hi Joao<br>
<br>
Something like this can be done. It probably isn't working for you<br>
because mkgmap:country is set at the end of points/lines/polygon<br>
processing, in inc/address, after the element has been generated.<br>
<br>
Assuming you are using bound processing (--bounds=...bounds.zip),<br>
you need something near the start of each rules file such as:<br>
<br>
mkgmap:admin_level2!=ESP {deletealltags}<br>
<br>
For the "lines" file you need to refine the above to allow motorways<br>
<br>
Ticker<br>
<br>
<br>
On Mon, 2020-08-31 at 09:37 +1000, Joao Almeida wrote:<br>
> Hi,<br>
> <br>
> I have an how to question. Hope someone can help.<br>
> <br>
> I use poly files to extract areas from the pbf files. but obviously<br>
> unless you very meticulously outline the countries borders one will<br>
> always have some of the neighboring country in a map.<br>
> <br>
> I would like to be able to have a general style for my map build but<br>
> have a rule in the style that would remove most of the detail from<br>
> the map. <br>
> The general idea would be that one would have only the major<br>
> highways, none or very few polygons and only the major cities for the<br>
> country added to the map, in essence a bit like the global garmin<br>
> basecamp which is very small but still gives us an overview of the<br>
> whole planet.<br>
> <br>
> I tried a deleteall tags rule , but it still added the items but just<br>
> didn't add the tags.<br>
> <br>
> something like (rough example) I know the code is not accurate but<br>
> hopefully gives you an idea:<br>
> <br>
> mkgmap:country=PRT {deletealltags} <br>
> mkgmap:country=ESP amenity=restaurant (0x000 resolution xx)<br>
> <br>
> For country portugal no points would be compiled into the map, for<br>
> country Spain all items in the style would be compiled into the map.<br>
> <br>
> Thanks a lot.<br>
> <br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br><br></blockquote></div></div>