<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steve,<br><br>reg. the failed test:<br>I think you can change the test because StyledConverter doesn't do<br>this (at least not now). <br>If you think it should be working we would need a method to<br>reset the field "current" in all LinkedOps so that they are evaluated again<br>for the same Element instance.<br><br>Gerd <br><br><br><div>Date: Mon, 2 Feb 2015 23:26:09 +0000<br>From: steve@parabola.me.uk<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Subject: Re: [mkgmap-dev] [Patch v1] avoid duplicate evaluation of rules<br><br><pre>Hi<br> <br>I found a place in the code which only dealt with a single OR.  Changing<br>that to deal with any number seems to fix the problem.<br> <br>There is however a problem that a test fails.  It does not appear to<br>be directly related to the fix, since it only occurs when resolving<br>the same way with different (changed) tags against the same<br>rule set.  That needs more investigation.<br> <br>Patch attached, and jar here: <br><a href="http://files.mkgmap.org.uk/download/247/mkgmap.jar" target="_blank">http://files.mkgmap.org.uk/download/247/mkgmap.jar</a><br> <br> <br>&gt; as A drian pointed out here:<br>&gt;<br>&gt; <a href="http://gis.19327.n5.nabble.com/Bug-in-handling-of-bus-stops-tp5832099.html" target="_blank">http://gis.19327.n5.nabble.com/Bug-in-handling-of-bus-stops-tp5832099.html</a><br>&gt;<br>&gt; we have a bug in the style evaluation system. The attached patch<br>&gt; makes sure that each rule is only evaluated once for one element.<br>&gt; If I got it right the problem occurs with rules that combine two<br>&gt; "or" expressions, like<br>&gt; (a | b) &amp; ( c |  d) { do something }<br>&gt;<br>&gt; A binary based on r3436 is here:<br>&gt; |<a href="http://files.mkgmap.org.uk/download/244/mkgmap.jar" target="_blank">http://files.mkgmap.org.uk/download/244/mkgmap.jar</a><br>&gt; |<br>&gt; @Steve: Please review, I've added a new field "matched" to<br>&gt; WatchableTypeResult<br>&gt; but I think the field "found" was  already intended for this?<br>&gt; Maybe you find a better place to fix this?<br>&gt;<br>&gt; Gerd<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>&gt;<br> <br></pre><br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>