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 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 file

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 = 123456789  { echotags 'City of Amsterdam'}


kind regards
Joris

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


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 file

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 = 123456789  { echotags ‘City of Amsterdam’}


kind regards
Joris

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


[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 = 123456789  { echotags 'City of Amsterdam'}


kind regards
Joris

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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)
havePolygon4B = true;
...


Von: mkgmap-dev  im Auftrag von Andrzej 
Popowski 
Gesendet: Mittwoch, 17. Oktober 2018 13:13
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] City search problem

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

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


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

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


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 it as a political problem, maybe because of the nice wether here in Germany 
and my ongoing problems with a rather expensive new bicycle ;-)

Gerd


Von: mkgmap-dev  im Auftrag von Andrzej 
Popowski 
Gesendet: Dienstag, 16. Oktober 2018 12:16
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] City search problem

Hi Gerd,

yes, I think that we could use irregular background without trimming
other objects. At least for some testing.

I'm not sure, what would be the easiest way to implement it. Maybe add
background polygon as explicit data in input source and include
processing for it in the style?

--
Best regards,
Andrzej
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev