<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Steve Ratcliffe wrote:
<blockquote cite="mid:20081215173850.GA3249@parabola.demon.co.uk"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator"
 content="MS Exchange Server version 08.01.0240.003">
  <title>Re: [mkgmap-dev] Relations and Multiple Tag Parsing Style Rules</title>
<!-- Converted from text/plain format -->
  <br>
  <p><font size="2">Hi Felix<br>
&gt;&nbsp;&nbsp;&nbsp; concerning relations I simply wrote this line to relations file
to line 7:<br>
&gt;&nbsp;&nbsp;&nbsp; type=route route=bus { apply { set route=bus; add
rn='${route_no}' ; }}<br>
  <br>
You need a '&amp;' between type=route and route=bus, did you have one
or is<br>
just a typo in the example?<br>
  </font></p>
</blockquote>
O.k. I've added the &amp; and now it parses without complaining, but I
think it does nothing. I tried to highlight the Donauradwanderweg which
is tagged as route=bicycle but it did not work. <br>
The best solution for relations would actually be to do them via an
overlay so one doesn't loose the properties of the underlying way!<br>
<blockquote cite="mid:20081215173850.GA3249@parabola.demon.co.uk"
 type="cite">
  <p><font size="2"><br>
&gt;&nbsp;&nbsp;&nbsp; with Line 3 being empty, then the following error is produced:<br>
&gt;&nbsp;&nbsp;&nbsp; Exception in thread "main" java.lang.NullPointerException<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
  <br>
Yes looks like a bug, should be fixed now.&nbsp; Thanks<br>
  <br>
.Steve<br>
  </font></p>
</blockquote>
Not completely, but it's working under the condition:<br>
Lines 1-4 <br>
1: 0x140: 0x11, 0x0e<br>
2: 0x141: 0x2a, 0x0e<br>
3: 0x142: 0x10, 0x0e<br>
4: (empty but existing)<br>
<br>
Is working.<br>
<br>
1: 0x140: 0x11, 0x0e<br>
2: 0x141: 0x2a, 0x0e<br>
3: 0x142: 0x10, 0x0e<br>
<br>
and line 4 not existing brings up the following error:<br>
<i>Error in style: Error: (overlays:3): List of numbers expected<br>
Could not open style null</i><br>
<br>
So for the moment one has to create an empty line 4 by exiting line 3
with enter (and thereby creating an empty line 4).<br>
<br>
<br>
<br>
Nevertheless I would prefer to have the overlay function independent of
the underlying way, would this be possible (whereas 0x0e stands for
bicycle=yes)?<br>
<br>
<b>Status Quo:</b><br>
&lt;&lt;&lt;Lines&gt;&gt;&gt;<br>
highway=path &amp; bicycle=yes [0x140 resolution 16]<br>
highway=footway &amp; bicycle=yes [0x141 resolution 16]<br>
highway=track &amp; bicycle=yes [0x142 resolution 16]<br>
&lt;&lt;&lt;Overlay&gt;&gt;&gt;<br>
1: 0x140: 0x11, 0x0e<br>
2: 0x141: 0x2a, 0x0e<br>
3: 0x142: 0x10, 0x0e<br>
4: (empty but existing)<br>
<br>
<b>I wish overlays would work as simple as in this example:</b><br>
&lt;&lt;&lt;Lines&gt;&gt;&gt;<br>
bicycle=yes [0x140 resolution 16]<br>
&lt;&lt;&lt;Overlay&gt;&gt;&gt;<br>
1: 0x140: 0x0e<br>
<br>
The advantage of this scheme is, that one does not need to know what
other tags are applied to the object. This is especially important if
you search for several different tags that all could be used on one
way. i.e. highway=track oneway=yes, bicycle=yes, tracktype=grade2 and
one does not need to specify all possible combinations!<br>
<blockquote cite="mid:20081215173850.GA3249@parabola.demon.co.uk"
 type="cite">
  <p><font size="2">_______________________________________________<br>
mkgmap-dev mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
  <a moz-do-not-send="true"
 href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
  </font>
  </p>
</blockquote>
</body>
</html>