Excluding countries from map build or reduce details for some countries.

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.

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@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Joao Almeida
-
Ticker Berkin