logo separator

[mkgmap-dev] Outlines of states/provinces

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Aug 8 11:32:38 BST 2022

Hi Steven,

in addition to Tickers reply there are these lines in the relations file
# Names of administrative boundaries.
# We could want to sort the relations in ascending order of admin_level
# and alphabetically by name first.
# Currently, the matching relations will be processed and the names
# appended to the boundary lines in an arbitrary order.

(type=boundary | type=multipolygon) & boundary=administrative & name=*
{ apply
  {
    set mkgmap:boundary_name='$(mkgmap:boundary_name)/${name}' | '${name}';
  }

Note that many (most?) ways with type=boundary are members in two or more relations. See e.g. https://www.openstreetmap.org/way/78508178
The above rule collects the names with the separator / between.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Montag, 8. August 2022 10:12
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Outlines of states/provinces

Hi Steve

Assuming you haven't overridden the default style, these boundary lines
are triggered by:

boundary=administrative {name '${mkgmap:boundary_name}'}
boundary=administrative & admin_level<3 [0x1e resolution 12]
boundary=administrative & admin_level<5 [0x1d resolution 19]
boundary=administrative & admin_level<7 [0x1c resolution 21]
boundary=administrative & admin_level<9 [0x1c resolution 22]
boundary=administrative [0x1c resolution 22]
boundary=national [0x1e resolution 17]
boundary=political [0x1c resolution 19]

which you can see in file {mkgmap}\examples\styles\default\lines around
line 245

Ticker

On Sun, 2022-08-07 at 21:07 +0000, Steven Miller wrote:
> I’m new to mkgmap and am still learning the basics. Having said that,
> I’ve downloaded the US-South sub-region from geofabrik.de and I can
> see a country dividing line or boundary between the state of Texas
> and Mexico. It’s a thin grey line. I’d like to know how to create
> these boundaries. Can anyone provide a brief overview of how to go
> about this? I know this question demonstrates a real lack of
> knowledge about how this whole thing works, but I’m learning as I go.
>
> Thanks a bunch, for anyone willing to tackle this ;-)
>
> Steve
>
> Steven Miller
> srmj71 at hotmail.com
> (717) 562-2879
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list