logo separator

[mkgmap-dev] Excluding countries from map build or reduce details for some

From Joao Almeida joaoha at gmail.com on Tue Sep 1 12:38:55 BST 2020

Thank you,
I will try it and let you know how it goes.

Thanks
Joao


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


More information about the mkgmap-dev mailing list