<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>> I would only like to display barrier/highway=gate point
icons if they are part of a (best routable) line.</p>
<p>Since I try to declutter my maps as best as possible I too had
"remove non-relevant gates" on my to do list and followed up on
that today. <br>
Accounting for points mapped on or between ways and access
restrictions optionally stemming from point and/or way I was able,
to already thin out my gates significantly. The include file is
just "re-used" from my lines processing.<br>
</p>
<blockquote>
<p><i># NoAccess gates on relevant highways</i><i><br>
</i><i># only works w/ mkgmap option --add-pois-to-lines</i><i><br>
</i><i>if (mkgmap:from-node:barrier ~ '.*(gate)' &
highway=*) then</i><i><br>
</i><i># gate on highway</i><i><br>
</i><i> include "../inc/RaceSurf"; </i><i><br>
</i><i> # tagging of (preselected) elements w/
hgh:surface=(Race|noRace)</i><i><br>
</i><i> # depending on quality in regard to race (and gravel)
bike use</i><i><br>
</i><i> </i><i><br>
</i><i> if (hgh:surface=Race) then </i><i><br>
</i><i> (mkgmap:from-node:access ~ 'no|private</i><i><br>
</i><i> & !(mkgmap:from-node:bicycle ~
'yes|permissive')<br>
...</i><i>)<br>
</i><i> # relevant access restricted by point</i><i><br>
</i><i> |</i><i><br>
</i><i> (access ~ 'no|private' </i><i><br>
</i><i> & !(bicycle ~ 'yes|permissive')<br>
...</i><i>)<br>
</i><i> # relevant access restricted by road segment</i><i><br>
</i><i>
[...]</i><i><br>
</i><i>
end
</i><i><br>
</i><i>end</i></p>
</blockquote>
<p>But I was not able, to solve the probably most interesting
situation: <br>
If a (gate) point is part of two (or more) consecutive ways, it is
processed multiple times from --add-pois-to-lines, but one would
need the tags of all ways involved at the same time to make the
final decision on whether or not to render this point. (That is
-for starters-, if not at least two ways were deemed interesting,
the gate might not be rendered although from one way alone, it
would). <br>
</p>
<p>Is there a concept, allowing to do that?</p>
<p>The only idea I came up with would be, to use the
mkgmap:line2poitype tag to flag these POIs somehow and finally
delete all, if not at least 2 of those where placed at the exact
same location. Somewhat similar to deleting identical POIs at the
same location as documented for the nearby-poi-rules. In the
latter case (>2), delete all but one...<br>
</p>
<p>Cheers, Felix<br>
</p>
</body>
</html>