How to deal with tag aeroway=runway either made as polygon or as line

Hi just now i stuck with the following rendering trouble. As you can see from the attached pictures, these two airports have identically tags for the runway, but the Wittmund runway is made out of a polygon and the Jever runway is made out of a line. If i put the rendering cmd into the line style file, Wittmund airport will be drawn with two runways and a gap in between. If i put the aeroway=runway item into the polygon style file, Wittmund will be drawn correctly, but Jever could not be drawn, as there is no polygon used for the runway.Using the aeroway=runway tag in both style files, will lead again Wittmund runway to be drawn as if there were two of them and no polygon underlying it. Is there any trick within the style file, to get a correct drawing with this inconsistency or is the only way to change, edit these airfield in the OSM database? -- Mit freundlichen Grüßen ##################################################### Manfred Haiduk, Zum Fischbach 9, 52393 Hürtgenwald e-mail mhaiduk@t-online.de #####################################################

Hi Manfred, I think you talk about http://www.openstreetmap.org/way/152327825 and http://www.openstreetmap.org/way/152323263 152327825 is a closed way (polygon) and 152323263 is a simple line. I don't yet understand what problem you have, it sounds as if you are using continue in your style when you see two map objects for one OSM object. You can use the style function is_closed() to detect closed ways, maybe that helps here. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Manfred Haiduk <mhaiduk@t-online.de> Gesendet: Samstag, 11. November 2017 23:13:31 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: [mkgmap-dev] How to deal with tag aeroway=runway either made as polygon or as line Hi just now i stuck with the following rendering trouble. As you can see from the attached pictures, these two airports have identically tags for the runway, but the Wittmund runway is made out of a polygon and the Jever runway is made out of a line. If i put the rendering cmd into the line style file, Wittmund airport will be drawn with two runways and a gap in between. If i put the aeroway=runway item into the polygon style file, Wittmund will be drawn correctly, but Jever could not be drawn, as there is no polygon used for the runway.Using the aeroway=runway tag in both style files, will lead again Wittmund runway to be drawn as if there were two of them and no polygon underlying it. Is there any trick within the style file, to get a correct drawing with this inconsistency or is the only way to change, edit these airfield in the OSM database? -- Mit freundlichen Grüßen ##################################################### Manfred Haiduk, Zum Fischbach 9, 52393 Hürtgenwald e-mail mhaiduk@t-online.de #####################################################

Hallo Manfred Sounds like you use continue on the line? I also test for is_closed() on the line file #Lines - Aeroways #======================================================================================= aeroway = runway & is_closed() != true [0x10d08 resolution 20] aeroway = taxiway & is_closed() != true [0x10d09 resolution 22] #polygons - Aeroways #======================================================================================= aeroway = airport [0x07 resolution 18] aeroway = aerodrome & landuse != military [0x07 resolution 20] aeroway = helipad | aeroway = runway | aeroway = taxiway [0x7f resolution 22] aeroway = apron [0x3a resolution 22] aeroway = terminal & building = * [0x3b00 resolution 22] Met vriendelijke groet, Joris Bovens -----Oorspronkelijk bericht----- Van: mkgmap-dev [mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk] Namens Manfred Haiduk Verzonden: zaterdag 11 november 2017 23:14 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: [mkgmap-dev] How to deal with tag aeroway=runway either made as polygon or as line Hi just now i stuck with the following rendering trouble. As you can see from the attached pictures, these two airports have identically tags for the runway, but the Wittmund runway is made out of a polygon and the Jever runway is made out of a line. If i put the rendering cmd into the line style file, Wittmund airport will be drawn with two runways and a gap in between. If i put the aeroway=runway item into the polygon style file, Wittmund will be drawn correctly, but Jever could not be drawn, as there is no polygon used for the runway.Using the aeroway=runway tag in both style files, will lead again Wittmund runway to be drawn as if there were two of them and no polygon underlying it. Is there any trick within the style file, to get a correct drawing with this inconsistency or is the only way to change, edit these airfield in the OSM database? -- Mit freundlichen Grüßen ##################################################### Manfred Haiduk, Zum Fischbach 9, 52393 Hürtgenwald e-mail mhaiduk@t-online.de #####################################################

Thanks for the quick answer, thats the style trick i'm not aware of Am 12.11.2017 um 09:45 schrieb Joris Bo:
Hallo Manfred
Sounds like you use continue on the line? I also test for is_closed() on the line file
#Lines - Aeroways #======================================================================================= aeroway = runway & is_closed() != true [0x10d08 resolution 20] aeroway = taxiway & is_closed() != true [0x10d09 resolution 22]
#polygons - Aeroways #======================================================================================= aeroway = airport [0x07 resolution 18] aeroway = aerodrome & landuse != military [0x07 resolution 20] aeroway = helipad | aeroway = runway | aeroway = taxiway [0x7f resolution 22] aeroway = apron [0x3a resolution 22] aeroway = terminal & building = * [0x3b00 resolution 22]
Met vriendelijke groet,
Joris Bovens
-----Oorspronkelijk bericht----- Van: mkgmap-dev [mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk] Namens Manfred Haiduk Verzonden: zaterdag 11 november 2017 23:14 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: [mkgmap-dev] How to deal with tag aeroway=runway either made as polygon or as line
Hi
just now i stuck with the following rendering trouble. As you can see from the attached pictures, these two airports have identically tags for the runway, but the Wittmund runway is made out of a polygon and the Jever runway is made out of a line. If i put the rendering cmd into the line style file, Wittmund airport will be drawn with two runways and a gap in between. If i put the aeroway=runway item into the polygon style file, Wittmund will be drawn correctly, but Jever could not be drawn, as there is no polygon used for the runway.Using the aeroway=runway tag in both style files, will lead again Wittmund runway to be drawn as if there were two of them and no polygon underlying it. Is there any trick within the style file, to get a correct drawing with this inconsistency or is the only way to change, edit these airfield in the OSM database?
-- Mit freundlichen Grüßen ##################################################### Manfred Haiduk, Zum Fischbach 9, 52393 Hürtgenwald e-mail mhaiduk@t-online.de #####################################################
participants (3)
-
Gerd Petermann
-
Joris Bo
-
Manfred Haiduk