<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 Thorsten,<br><br>yes, got that in my mind when I proposed my 2nd alternative,<br>but it should probably be something like <br>railway=* &amp; !(tunnel=yes) &amp; (building=no ! building!=*) [0x14 resolution 22]<br><br>Or maybe we should add a general rule <br>building=no {delete building}<br><br>somewhere at the start of lines?<br><br>Gerd<br><br><div>&gt; Date: Mon, 9 Feb 2015 09:08:09 +0100<br>&gt; From: kukuk@suse.de<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: Re: [mkgmap-dev] Railway tracks drawn around station buildings<br>&gt; <br>&gt; On Mon, Feb 09, Gerd Petermann wrote:<br>&gt; <br>&gt; &gt; Hi Adrian,<br>&gt; &gt; <br>&gt; &gt; your post is hard to read, but I think the last solution is the only one<br>&gt; &gt; that really solves the problem.<br>&gt; &gt; So I'd vote for <br>&gt; &gt; railway=* &amp; !(tunnel=yes) &amp; building!=* [0x14 resolution 22]<br>&gt; <br>&gt; I have already seen building=no ...<br>&gt; <br>&gt;   Thorsten<br>&gt; <br>&gt; &gt; instead of<br>&gt; &gt; railway=* &amp; !(tunnel=yes) [0x14 resolution 22] <br>&gt; &gt; <br>&gt; &gt; Gerd<br>&gt; &gt; <br>&gt; &gt; From: ar2988-os@outlook.com<br>&gt; &gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; &gt; Date: Mon, 9 Feb 2015 00:51:57 +0000<br>&gt; &gt; Subject: [mkgmap-dev] Railway tracks drawn around station buildings<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; This way https://www.openstreetmap.org/way/72614628 is tagged building=yes and railway=station. In the generated map (r3436 and default style), it appears as a railway track following the outline of the building. At resolution 24, the building is not rendered. The tag railway=station was originally on a node on the track representing the stopping-point of trains. The tag was moved to the station building by another user (Christian Quest, no less, president of the board of OSM France). I would not have tagged it in that way, but it is one of several possibilities allowed for in the wiki. There are about 500 stations in France tagged in the same way (half of which have been edited by cquest).<br>&gt; &gt; <br>&gt; &gt; The railway track comes from line 166 of the lines style file<br>&gt; &gt; railway=* &amp; !(tunnel=yes) [0x14 resolution 22]<br>&gt; &gt; Many values of the railway tag are in use, so I am not sure what is the best way to prevent railway lines being drawn round buildings. Some possibilities:<br>&gt; &gt; A whitelist<br>&gt; &gt; (railway=rail | railway=tram | railway=disused | railway=subway | railway=narrow_gauge | railway=light_rail | railway=preserved) &amp; !(tunnel=yes) [0x14 resolution 22]<br>&gt; &gt; A blacklist<br>&gt; &gt; railway=* &amp; railway!=station &amp; railway!=construction &amp; railway!=razed &amp; railway!=dismantled &amp; !(tunnel=yes) [0x14 resolution 22]<br>&gt; &gt; (The whitelist and blacklist are based on the frequency of tags according to taginfo https://taginfo.openstreetmap.org/keys/railway?filter=ways#values )<br>&gt; &gt; Test for buildings<br>&gt; &gt; railway=* &amp; !(tunnel=yes) &amp; building!=* [0x14 resolution 22]<br>&gt; &gt; <br>&gt; &gt; I prefer the whitelist because it gives you better control: you know exactly which tags are going to be rendered. Any thoughts?<br>&gt; &gt; <br>&gt; &gt; Adrian<br>&gt; &gt; <br>&gt; &gt;                                                <br>&gt; &gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; mkgmap-dev mailing list<br>&gt; &gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; &gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev                                               <br>&gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; mkgmap-dev mailing list<br>&gt; &gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; &gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Thorsten Kukuk, Senior Architect SLES &amp; Common Code Base<br>&gt; SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany<br>&gt; GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)<br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div></body>
</html>