<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 WanMil,<br><br>if I got that right, the user has to make sure that<br>a name change is applied to nodes and ways. Correct?<br><br>Gerd<br><br><div>Date: Sun, 1 Jun 2014 12:47:33 +0200<br>From: wmgcnfg@web.de<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Subject: [mkgmap-dev] [PATCH v1] Fix handling of housenumbers for street names changed by style<br><br><pre>The patch changes the house number processing in such a way that it uses <br>OSM elements how they are returned from the style processing.<br>The important thing is that street names of house number nodes are <br>evaluated after style processing and not before.<br> <br>WanMil<br> <br> <br>> Hi Gerd,<br>><br>> maybe I find some time on the weekend to have a look on it.<br>><br>> WanMil<br>><br>>> Hi Colin,<br>>><br>>> I think you found a bug in the housenumber processing.<br>>> The current implementation uses the streetnames which exist before style<br>>> processing<br>>> to produce a map of existing streets and nodes with addr info. After<br>>> style processing, It tries to find the<br>>> nodes and ways with the same name as that of a road. With your changes,<br>>> this will probably<br>>> fail.<br>>> If I got that right, we have to create another map that maps old and new<br>>> streetnames.<br>>><br>>> @WanMil: Do you have time to look at this?<br>>><br>>> Gerd<br>>><br>>><br>>><br>>> ------------------------------------------------------------------------<br>>> Date: Sun, 25 May 2014 22:18:35 +0200<br>>> From: colin.smale@xs4all.nl<br>>> To: mkgmap-dev@lists.mkgmap.org.uk<br>>> Subject: [mkgmap-dev] House numbers and styles<br>>><br>>> I have some rules which modify name, addr:street and mkgmap:street in<br>>> "lines" and "points" which apply some transformations to the street<br>>> names. The idea is to normalise the names by removing punctuation and<br>>> standardising abbreviations. The resulting map is missing the house<br>>> numbers for streets whose name I have modified. In the style rules, I<br>>> apply identical transformations to the way (looking for highway=* &<br>>> name=*) and points (looking for addr:street and mkgmap:street,<br>>> separately of course). I expect that mkgmap can match up the address<br>>> nodes with the street because the street names are still identical, but<br>>> something is not working right. The modified street name is working fine<br>>> - that is displayed and is in the index (i.e. I can search for it as a<br>>> destination). However for these streets only, there don't seem to be any<br>>> house numbers present. A search for a specific (existing) number on the<br>>> road finds the road with no numbers, at the centroid of the street.<br>>> Other streets whose names don't get changed, will allow me to find a<br>>> specific house number and get the location right as well.<br>>> Does anyone have any ideas what might be going wrong here? Am I trying<br>>> to do something that can never work?<br>>> Is it possible that something in the address handling in mkgmap is using<br>>> the original street name, before the style has been applied?<br>>> Is it possible that the styles don't get applied to address-only nodes?<br>>> I have the following in "lines":<br>>> # CS: normalise by getting rid of . in abbreviations<br>>> highway=* & name ~ '.*[.].*' {set name='${name|subst:.-=>-|subst:\.~><br>>> |subst: +~> }'}<br>>> ... and the following in "points":<br>>> # CS: normalise by getting rid of . in abbreviations<br>>> #mkgmap:street ~ '.*[.].*' {set<br>>> mkgmap:street='${mkgmap:street|subst:.-=>-|subst:\.~> |subst: +~> }';<br>>> echo "fixed mkgmap:street ${mkgmap:street}"}<br>>> mkgmap:street ~ '.*[.].*' {set<br>>> mkgmap:street='${mkgmap:street|subst:.-=>-|subst:\.~> |subst: +~> }'}<br>>> #addr:street ~ '.*[.].*' {set<br>>> addr:street='${addr:street|subst:.-=>-|subst:\.~> |subst: +~> }'; echo<br>>> "fixed addr:street ${addr:street}"}<br>>> addr:street ~ '.*[.].*' {set<br>>> addr:street='${addr:street|subst:.-=>-|subst:\.~> |subst: +~> }'}<br>>> Thanks in advance for any pointers!<br>>> Colin<br>>><br>>><br>>> _______________________________________________ mkgmap-dev mailing list<br>>> mkgmap-dev@lists.mkgmap.org.uk<br>>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>>><br>>><br>>> _______________________________________________<br>>> mkgmap-dev mailing list<br>>> mkgmap-dev@lists.mkgmap.org.uk<br>>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>>><br>><br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><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>