logo separator

[mkgmap-dev] Doubt when using "road-name-config"

From Gerd Petermann GPetermann_muenchen at hotmail.com on Mon Jun 12 05:04:10 BST 2017

Hi Alexandre,

the prefixes are only removed when you zoom out and the full name would be too long
to be displayed. Sometimes MapSource decides to render the shortened name instead,
sometimes it is not rendered. I think this depends on the "level of details" setting.

The file LocatorConfig.xml is shipped with the mkgmap.jar and contains other country specific
information, e.g.
        <country name="Brasil" abr="BRA" streetBeforeHousenumber="true">
                <variant>BR</variant>
                <variant>BRA</variant>
                <variant>Brazil</variant>
        </country>

Follow the link which I pasted to browse the file content or extract it from the jar
mkgmap.jar\LocatorConfig.xml
I think you can use a modified version of the file when you place it into a directory \resources
in the working directory of mkgmap.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Alexandre Loss <alexandre.loss at gmail.com>
Gesendet: Sonntag, 11. Juni 2017 23:25:39
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Doubt when using "road-name-config"

Thank you Carlos and Gerd by your answers.

In fact, I don't use the default style, but each way is tagged with "mkgmap:country=BRA", as you can see in a partial sample extracted from a mkgmap execution with echotags:

Way 6761 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, mkgmap:label:1=RUA DAS ROSAS, mkgmap:region=MG, mkgmap:street=RUA DAS ROSAS, name=RUA DAS ROSAS]
Way 13983 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, mkgmap:label:1=RUA RUBI, mkgmap:region=MG, mkgmap:street=RUA RUBI, name=RUA RUBI]


This is may roadNameConfig.txt file in this test:

##########################################################################
# Section 1
# prefix1:<lang> list of 1st words
# prefix2:<lang> further words to combine with each prefix1 word, separated with a blank
# suffix:<lang> gives list of suffix words

# portugese
prefix1:pt = "Rua", "Avenida", "Travessa"
prefix2:pt = "da ", "do ", "de ", "das ", "dos "

##########################################################################
# Section 2
# Map 3 letter ISO country codes to list of used languages for road names.

lang:BRA = pt
lang:PRT = pt

And in MapSource I'm still viewing the ways with full name prefixed bye "Rua" and "Rua das ":

[Imagem inline 1]


What can I'm doing wrong?

And Gerd, in your last email you quoted the "LocatorConfig.xml" file. What file is this and where can I find it?

Thanks.

Alexandre


2017-06-11 12:00 GMT-03:00 Gerd Petermann <GPetermann_muenchen at hotmail.com<mailto:GPetermann_muenchen at hotmail.com>>:
Hi,

Carlos is right for the default style. If you use a very different style, make sure that mkgmap:country contains the
3 letter iso code for the country. See also the file LocatorConfig.xml. I'll try to make that clearer in the coments
in roadNameConfig.txt.

https://github.com/openstreetmap/mkgmap/tree/master/resources

Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk>> im Auftrag von Carlos Dávila <cdavilam at orangecorreo.es<mailto:cdavilam at orangecorreo.es>>
Gesendet: Sonntag, 11. Juni 2017 15:32
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Doubt when using "road-name-config"

El 11/06/17 a las 14:42, Alexandre Loss escribió:
> Hi Gerd,
>
> I'm trying to use the new "road-name-config" parameter and I have a doubt:
>
> In section 2 of the file roadNameConfig.txt there are some language
> configuration, for example "lang:FRA = fr". However, when do I tell
> mkgmap which language I'm using? In what parameter is this
> configured? Is it "country-abbr"?
>
> Thanks,
>
> Best regards
>
> Alexandre Loss
>
Section 2 is used by mkgmap to know what language(s) is spoken in each
country. You don't have to tell mkgmap what language, but what country.
And it takes that info from bounds file if --bounds parameter is given.
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8496 bytes
Desc: image.png
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20170612/a1d671e5/attachment.png>


More information about the mkgmap-dev mailing list