<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}
span.TekstzonderopmaakChar
{mso-style-name:"Tekst zonder opmaak Char";
mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak";
font-family:"Arial",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-GB">Hi<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">I also use this as a way of investigating the results and improve the map
</span><span lang="EN-GB" style="font-family:"Segoe UI Emoji",sans-serif">😊</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Very handy for less technical users as myself, easier then overpass turbo.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">I read the mkgmap echotags output in excel and get clickable http links to all output for free.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">If the 'Node generated from' is an artificial node it will never work.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">But still there are also a lot of nodes which today correctly mention the id its generated from.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Its just that if it’s a 'way' and you want a http request, you need to know if it was a multipolygon way to link to openstreetmap.org/<<RELATION>>/688658542 or it is a normal way or polygon linking to openstreetmap.org/<<WAY>>/688658542<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">It can be solved in the relations file by adding a tag to all multipolygon relations.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Based on that value (which appears in the echotags) you can decide to use either WAY or RELATION in the HTTP request.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Never implemented it that way because I guess it’s a lot overhead<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">I'll try the patch, nice feature !<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Kind regards<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Joris<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText">-----Oorspronkelijk bericht-----<o:p></o:p></p>
<p class="MsoPlainText">Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Gerd Petermann<o:p></o:p></p>
<p class="MsoPlainText">Verzonden: vrijdag 19 juni 2020 10:58<o:p></o:p></p>
<p class="MsoPlainText">Aan: mkgmap-dev <mkgmap-dev@lists.mkgmap.org.uk><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-GB">Onderwerp: Re: [mkgmap-dev] possible echotags enhancement?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Hi Ranko,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">I don't fully understand what you are trying to do. I fear this is not always possible to report the original element. For some ways with a so-called "fake id" there is no real element in OSM, e.g. the ways generated
by the --precomp-sea option.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Anyhow, I've also missed that feature in the past.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Attached is a quick hack to add either node,way, or relation after the string "generated from ". I didn't test it well. Please check if it helps to solve your problem.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">The binary is here:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">http://files.mkgmap.org.uk/detail/483<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText">Gerd<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">________________________________________<o:p></o:p></p>
<p class="MsoPlainText">Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-GB">Gesendet: Donnerstag, 18. Juni 2020 22:14<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">An: mkgmap-dev<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Betreff: [mkgmap-dev] possible echotags enhancement?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Hello,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">echotags style command displays the element type and original OSM-Id (as in "Node generated from <OSM-Id>").<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Would it be possible to additionally display the original element type for all such "generated from" elements?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">(Something like "Node generated from Way <OSM-Id>" or "Way generated from Relation <OSM-Id>")<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">Background:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">At the end of my style file I use echotags to log elements left unhandled and then process this logfile to generate a html file with direct links to offending elements in OSM.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">This way I can click and easily correct the data in OSM if needed.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">A href tag generated this way looks like this: <a href="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542>>OSM link</a><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">To do this I need to detect the (original) element type from the echotags message (is it a node/way/relation), but for "generated from" elements there is no way to detect this properly from the echotags message text.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">For example: with the "--add-pois-to-areas" option a node is generated for each polygon or multipolygon.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB">However, the message is the same for both and there is no way to detect if the original element was a polygon ("way") or a multipolygon ("relation") :(<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText">regards,<o:p></o:p></p>
<p class="MsoPlainText">Ranko<o:p></o:p></p>
</div>
</body>
</html>