logo separator

[mkgmap-dev] Why is mkgmap the option --country-name=name

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Feb 3 06:06:04 GMT 2018

Hi Eugeny,

the name probably comes from nodes like this
https://www.openstreetmap.org/node/27490597
Note that it has
is_in:country="Russian Federation"

I assume that the bounds file is incomplete and that mkgmap doesn't set  mkgmap:admin_level2,
maybe because you create the bounds with a file that doesn't fully contain relation 60189,
maybe because there is another problem with the boundaries.

Gerd


________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Eugeny_B <eugeny_burynin at mail.ru>
Gesendet: Freitag, 2. Februar 2018 23:35
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Why is mkgmap the option --country-name=name

I apologize for my English, I use Google translator.
Yes, in the file RU-LEN.osm.pbf are the objects of 3 countries. I understand
that "Country" is wrong.
The question is different. I specify in the nations --code-page=1251 and
--name-tag-list=name:ru, name, name:en, int_name
"SUOMI" is correct (there is no Russian)
"Эстония" is correct (there is a Russian)
"Russian Federation" is wrong (there is a Russian "Россия")
Style Address
# ====================================================================
# first set the country code
# ====================================================================
mkgmap:country!=* & mkgmap:admin_level2=* { set
mkgmap:country='${mkgmap:admin_level2}' }
mkgmap:country!=* & addr:country=* { set
mkgmap:country='${addr:country|country-ISO:}' }
mkgmap:country!=* & is_in:country=* { set
mkgmap:country='${is_in:country|country-ISO:}' }

https://www.openstreetmap.org/relation/60189#map=1/70/0
ISO3166-1       RU
ISO3166-1:alpha2        RU
ISO3166-1:alpha3        RUS
ISO3166-1:numeric       643
admin_level     2
border_type     nation
boundary        administrative
int_name        Russia
int_ref         RU
name    Россия
name:UN:ru      Российская Федерация
name:ru         Россия
official_name   Российская Федерация
official_name:ru        Российская Федерация
type    boundary

Why "Russian Federation"?

https://www.openstreetmap.org/relation/79510
ISO3166-1       EE
ISO3166-1:alpha2        EE
ISO3166-1:alpha3        EST
ISO3166-1:numeric       233
admin_level     2
boundary        administrative
int_name        Estonia
name    Eesti
name:ru         Эстония
type    boundary

Here it is correct "Эстония"



--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list