Re: [mkgmap-dev] Testing for way id in style file

2018-10-17 Thread Joris Bo
Thx Gerd ! -Oorspronkelijk bericht- Van: mkgmap-dev Namens Gerd Petermann Verzonden: woensdag 17 oktober 2018 21:39 Aan: Development list for mkgmap Onderwerp: Re: [mkgmap-dev] Testing for way id in style file Hi, yes, there is a style function osmid() which returns the id of an

Re: [mkgmap-dev] Testing for way id in style file

2018-10-17 Thread Gerd Petermann
Hi, yes, there is a style function osmid() which returns the id of an object. Gerd Von: mkgmap-dev im Auftrag von Joris Bo Gesendet: Mittwoch, 17. Oktober 2018 21:00 An: Development list for mkgmap Betreff: [mkgmap-dev] Testing for way id in style

[mkgmap-dev] Testing for way id in style file

2018-10-17 Thread Joris Bo
Hello, Question about testing for the object's id for echo purposes. If I use name = "Amsterdam" { echotags 'City of Amsterdam'} it will echo the id (let's say 123456789) to the output logging Is it also possible to test for the id itself ? for example something like id =

Re: [mkgmap-dev] City search problem

2018-10-17 Thread Gerd Petermann
Hi Andrzej, I have no idea about the details. I just know these lines in mkgmap source PolishMapDataSource.java: ... if (addBackground && !havePolygon4B) addBackground(); ... if(type == 0x4b)

Re: [mkgmap-dev] City search problem

2018-10-17 Thread Andrzej Popowski
Hi Gerd, I'll try to do some tests with mp, when I find some time. I wasn't aware, that mkgmap accept background with this format. Does mkgmap process statement "background=Y"? I wonder if background object in img has any distinctive attributes. -- Best regards, Andrzej

Re: [mkgmap-dev] City search problem

2018-10-17 Thread Gerd Petermann
Hi Andrzej, I'd prefer to reuse the code that is used with --dem-polygon to specify the polygon itself. Maybe you can play with mp format? If mkgmap finds a background polygon in the mp file it will not add one. My own motivation to start coding is still rather small, maybe because I think of