[mkgmap-dev] Stuck on rendering a man_made = breakwater
From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Oct 19 06:24:48 BST 2018
Hi Joris, thanks for pointing this out, it was a bug introduced with r2472: http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=2472 It is fixed with r4245: http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4245 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com> Gesendet: Donnerstag, 18. Oktober 2018 22:02 An: Joris Bo; Development list for mkgmap Betreff: Re: [mkgmap-dev] Stuck on rendering a man_made = breakwater Hi Joris, sorry, forget that. The main question is why the tag mkgmap:stylefile=polyline is set. Since this is set the polygon rules are not executed for the object. Setting mkgmap:stylefilter in the lines style file has no effect. In this case the SeaGenerator processes the natural=coastline tag and sets the tag mkgmap:stylefilter=polyline. If I got it right it creates a copy of the way with a faked id, so your rules will not report this. The added way should have tag mkgmap:removed_natural=coastline. Maybe that helps? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com> Gesendet: Donnerstag, 18. Oktober 2018 21:51 An: Joris Bo; Development list for mkgmap Betreff: Re: [mkgmap-dev] Stuck on rendering a man_made = breakwater Hi Joris, maybe you have a rule in the lines file that processes the way and doesn't have the continue statement. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Joris Bo <jorisbo at hotmail.com> Gesendet: Donnerstag, 18. Oktober 2018 20:49 An: Development list for mkgmap Betreff: [mkgmap-dev] Stuck on rendering a man_made = breakwater Hello, I’m trying to render a man_made = breakwater polygon area and are struggling for a long time. I think it is a polygon (mkgmap:cache_area_size=5643.060) and should also be processed that way but for whatever reason it never passes the polygon rules only the lines-rules. So I can get a closed line around it but cannot fill it. The geofabric download is from today. https://www.openstreetmap.org/#map=15/52.9444/5.0429 First I thougt it’s because the combination with natural = coastline and the precomp-sea option. At least removing the natural = coastline tag does not help I also tried to set set mkgmap:stylefilter = polygon within the lines file, hoping I could fool it to continue with the polygon rules But as far as I can see it never gets there. Lines file jbecho = true {echotags 'Line before breakwater'} #man_made = breakwater & natural = coastline { delete natural } man_made = breakwater & natural = coastline & is_closed() = true { set mkgmap:stylefilter = polygon } jbecho = true {echotags 'Line after set stylefilter test to polygon'} man_made = breakwater & is_closed() != true & area != yes [0x10a14 resolution 22 continue] jbecho = true {echotags 'Line after breakwater'} My lines rules file starts with man_made = * & osmid() = 53546926 {set jbecho = true} jbecho = true { echotags 'debug - lines - body start' } My polygon rules file starts with man_made = * & osmid() = 53546926 {set jbecho = true} jbecho = true { echotags 'debug - polygons - body start' } The logging Way 53546926 [jbecho=true, man_made=breakwater, mkgmap:cache_area_size=5643.060, mkgmap:stylefilter=polyline, natural=coastline, place=islet] debug - lines - body start Way 53546926 [jbecho=true, man_made=breakwater, mkgmap:cache_area_size=5643.060, mkgmap:stylefilter=polyline, natural=coastline, place=islet] Line before breakwater Way 53546926 [jbecho=true, man_made=breakwater, mkgmap:cache_area_size=5643.060, mkgmap:stylefilter=polygon, natural=coastline, place=islet] Line after set stylefilter test to polygon Way 53546926 [jbecho=true, man_made=breakwater, mkgmap:cache_area_size=5643.060, mkgmap:stylefilter=polygon, natural=coastline, place=islet] Line after breakwater Way 53546926 [jbecho=true, man_made=breakwater, mkgmap:cache_area_size=5643.060, mkgmap:stylefilter=polygon, natural=coastline, place=islet] debug - lines - body end So it never gets to the polygon rules file where I think it should go Could somebody hint me what I’m doing wrong? Kind regards, Joris _______________________________________________ mkgmap-dev mailing list 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 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Stuck on rendering a man_made = breakwater
- Next message: [mkgmap-dev] Commit r4245: correction: if precomp--sea option is used, closed ways with the tag natural=coastline where only processed as lines, not as polygons.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list