Re: [mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Gerd Petermann
Hi, first I'd like to say it works as intended, see http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap=1694 Unfortunately WanMil is no longer active here, so I have no way to ask him why he deicded to use copies of the original ways instead of the joined way. Anyway, for ways with

Re: [mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Andrzej Popowski
Hi Gerd, > are in fact copies of the original way members of the MP and those are > typically not closed I see 3 possible solutions: 1. Convert multipolygon ways to a proper, continuous outline. 2. Return is_closed() as true, when mkgmap:mp_created is true. 3. Add info to documentation, that

Re: [mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Gerd Petermann
Hi Ticker, okay, I can reproduce the results. I was wrong, the ways with mkgmap:mp_created=true and mkgmap:stylefilter=polyline are in fact copies of the original way members of the MP and those are typically not closed. No idea why it is implemented this way. Looks wrong to me. Gerd

Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)

2018-11-22 Thread andreas . schmidt . hetschbach
Hi Gerd,  great idea and it works good for my puposes. In principle I try to do the following:  Use Option –add-pois-to-lines • Add a tag route_mtb_info_point to the first member of a route • Add all the relevant relation Information • Add the „direction“ (role=backward/Forward) of the first

Re: [mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Ticker Berkin
Hi Gerd What I was expecting was that multiPolygonRelation generates 1 closed way per distinct outer polyon and this has just the tags of the relation. This is passed to 'lines' and 'polygons' matching. My example is relation/1371699 which uses 9 ways (a mix of existing roads and ways just

Re: [mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Gerd Petermann
Hi Ticker, I don't understand what you expect here. The ways with tag mkgmap:mp_created are the result of the joining process. Normally they are closed. Is the one way that is reported a part of a broken MP? Maybe you expect that the members of a MP rel do also have a special tag? That would be

[mkgmap-dev] closed ways and multi-polygon relations

2018-11-22 Thread Ticker Berkin
Hi Gerd I'd hoped and expected that all polygons were fed into the 'lines' style processing in a similar manner, regardless of their origin as either a closed OSM way or generated by multiPolygonRelation. This would allow simple testing using just 'is_closed()=true' to effect lines around

Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)

2018-11-22 Thread Gerd Petermann
Hi Andrzej, there is a comment in style file relations : # apply way { add name='${name}' } but it seems this syntax was never implemented. I can try to add that, too. Gerd Von: mkgmap-dev im Auftrag von Andrzej Popowski Gesendet: Donnerstag, 22.

Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)

2018-11-22 Thread Andrzej Popowski
Hi Gerd, I think it would be better to have something like apply_first_way. See for example these relations, where first member is a point: https://www.openstreetmap.org/relation/1699620 https://www.openstreetmap.org/relation/254686 -- Best regards, Andrzej

Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)

2018-11-22 Thread Gerd Petermann
Hi Andreas, sorry, it would work but it would require a lot of work since a normal style function only knows either the relation or the member, not both. While looking at this I noticed the apply_once action. I think it is almost what we need, so I implemented an apply_first action with the