Re: [mkgmap-dev] Non-rectangular tiles

2014-11-27 Thread Marko Mäkelä
On Thu, Nov 27, 2014 at 07:27:12AM +0100, Thorsten Kukuk wrote: On Thu, Nov 27, Steve Ratcliffe wrote: I was meaning to write a message about this for a while and since the thread for drive-on-left/right has brought this up already today and since it is a mkgmap birthday (8 years!) this might

Re: [mkgmap-dev] Non-rectangular tiles

2014-11-27 Thread Colin Smale
On 2014-11-27 07:27, Thorsten Kukuk wrote: > On Thu, Nov 27, Steve Ratcliffe wrote: > >> I was meaning to write a message about this for a while and since the thread >> for drive-on-left/right has brought this up already today and since it is a >> mkgmap birthday (8 years!) this might be a

Re: [mkgmap-dev] Manage drive-on-left/drive-on-right in resources\LocatorConfig.xml

2014-11-27 Thread Colin Smale
As well as Africa, how about looking at Hong Kong/Macau/China as an example of a busy land border which switches sides, including this work of civil engineering art: http://en.wikipedia.org/wiki/Ponte_Flor_de_L%C3%B3tus How can we make a map for regular travellers between e.g. Shenzen and Ho

Re: [mkgmap-dev] evaluation of boolean options

2014-11-27 Thread Gerd Petermann
Hi Steve, > > > the evaluation of boolean options in mkgmap is a bit confusing. > > It is possible to specify e.g. > > --drive-on-left > > This is the only documented form for this option. Yes, that's true. I fear it was me who introduced the format var=true|false with the documentation of --re

Re: [mkgmap-dev] Non-rectangular tiles

2014-11-27 Thread Gerd Petermann
Hi Steve, > I was meaning to write a message about this for a while and since > the thread for drive-on-left/right has brought this up already today > and since it is a mkgmap birthday (8 years!) this might be a good > time to set the ball rolling. Happy Birthday from me as well! It is great fun

Re: [mkgmap-dev] Manage drive-on-left/drive-on-right in resources\LocatorConfig.xml

2014-11-27 Thread Gerd Petermann
Hi Steve, > 1. Use the option set by the user. +1 > 2. If options is not given, look up the countries (from LBL) in the > LocatorConfig; if all are drive-on-the-same-side use that. I counted the roundabouts because they seem to be the only affected elements of this flag and I thought it might be

[mkgmap-dev] Commit: r3356: commit styleStats-v5.patch + small change to make unit tests work

2014-11-27 Thread svn commit
Version mkgmap-r3356 was committed by gerd on Thu, 27 Nov 2014 commit styleStats-v5.patch + small change to make unit tests work ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

[mkgmap-dev] [Patch v1] use --country-name / --country-abbr to set mkgmap:admin_level2

2014-11-27 Thread Gerd Petermann
Hi all, attached is a small patch which allows to use the options country-name or country-abbr to set a default value for the tag mkgmap:country which is important for the address rules. This should help those users who live in a big country like the USA and try to create a map without download

[mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread Gerd Petermann
Hi all, the default style file inc/address starts with these three rules: # 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}' } mkgmap:country!=* & is_in:co

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread Carlos Dávila
El 27/11/14 a las 15:36, Gerd Petermann escribió: Hi all, the default style file inc/address starts with these three rules: # first set the country code mkgmap:country!=* & mkgmap:admin_level2=* { set mkgmap:country='${mkgmap:admin_level2}' } mkgmap:country!=* & addr:country=* { set mkgmap:cou

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread GerdP
Hi Carlos, I am not sure what you mean, but mkgmap doesn't contain java code to set or evaluate the tags addr:country or is_in:country. Gerd Carlos Dávila-2 wrote > El 27/11/14 a las 15:36, Gerd Petermann escribió: >> Hi all, >> >> the default style file inc/address starts with these three rule

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread Carlos Dávila
El 27/11/14 a las 16:22, GerdP escribió: Hi Carlos, I am not sure what you mean, but mkgmap doesn't contain java code to set or evaluate the tags addr:country or is_in:country. Gerd Carlos Dávila-2 wrote El 27/11/14 a las 15:36, Gerd Petermann escribió: Hi all, the default style file inc/a

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread GerdP
Hi Carlos, okay, got it. Maybe we can add a style function to convert from/to ISO codes. Gerd Carlos Dávila-2 wrote > El 27/11/14 a las 16:22, GerdP escribió: >> Hi Carlos, >> >> I am not sure what you mean, but mkgmap doesn't contain java code to >> set or evaluate the tags addr:country or is_i

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread WanMil
Hi Gerd, the address file is an include and you don't know what happens before. Maybe it is not set in the mkgmap style. But the address file is quite general and so it is probably used by other styles which might have some special rules before "include address" that set mkgmap:country. So I

[mkgmap-dev] Substring returns full string

2014-11-27 Thread gbbickerton
I have (ncn=yes | rcn=yes) { name '${rcnname | substring:1:14}'} [0x10018 resolution 22 continue with_actions] in my lines file, rcnname is 123456789123456789 for test purposes, I get the full string showing on the map in basecamp not the 1 - 14 substring am I doing something wrong ? -- View

Re: [mkgmap-dev] Substring returns full string

2014-11-27 Thread Steve Sgalowski
i am unshure why , but gbbickerton , is always ending up in my spam , box from this list has this e-mail been tanted on black lists , does any one else have this problem on the list ? On Fri, Nov 28, 2014 at 6:32 AM, gbbickerton wrote: > I have > (ncn=yes | rcn=yes) { name '${rcnname | substri

Re: [mkgmap-dev] Substring returns full string

2014-11-27 Thread GerdP
Hi Steve, you are right, I don't even find it as spam in my outlook.com mailbox. Gerd steve sgalowski wrote > i am unshure why , but gbbickerton , is always ending up in my spam , box > from this list > > has this e-mail been tanted on black lists , does any one else have this > problem on the

Re: [mkgmap-dev] Substring returns full string

2014-11-27 Thread gbbickerton
I have not had this problem with my email before that I know of, however it does not solve my problem what I want is a way to shorten names to say the first two words as some are very long. I have also tried { name '${rcnname|part:"\s<2"}'} but I am not sure how to separate at spaces I have trie

Re: [mkgmap-dev] Manage drive-on-left/drive-on-right in resources\LocatorConfig.xml

2014-11-27 Thread Gerd Petermann
Hi Andrzej, thanks for the link, that'll probably help a lot for the non-rectangular tiles stuff. Gerd > Date: Wed, 26 Nov 2014 23:06:49 +0100 > From: po...@poczta.onet.pl > To: mkgmap-dev@lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] Manage drive-on-left/drive-on-right in > resources\L

Re: [mkgmap-dev] useless rules in default style inc/address

2014-11-27 Thread Gerd Petermann
Hi WanMil, > the address file is an include and you don't know what happens before. > Maybe it is not set in the mkgmap style. But the address file is quite > general and so it is probably used by other styles which might have some > special rules before "include address" that set mkgmap:countr