<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Gerd,<br>
<br>
Thanks, this is exactly what I need!<br>
<br>
I tested "Node generated from" and it works as expected.<br>
Before I couldn't determine if a node was generated from a way or a
relation so my script always generated 2 href links (for both way
and relation).<br>
One link would work and the other not. Now I can always generate
only one (correct!) link :)<br>
<br>
See example.zip in attachment: log.txt is the original echotags text
log. From this I generate a log.html at the end of every compile.<br>
When you open log.html you can click on the link to open that
element in OSM and quickly edit if needed.<br>
<br>
I have no ready example for "(Joined)Way generated from" at the
moment (I will test it when I find one),<br>
but I think you can commit this change... :)<br>
<br>
Ranko<br>
<br>
<br>
<div class="moz-cite-prefix">On 19.06.2020. 10:57, Gerd Petermann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR08MB5410E820BEC331FB7720971A9E980@AM0PR08MB5410.eurprd08.prod.outlook.com">
<pre class="moz-quote-pre" wrap="">Hi Ranko,
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.
Anyhow, I've also missed that feature in the past.
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.
The binary is here:
<a class="moz-txt-link-freetext" href="http://files.mkgmap.org.uk/detail/483">http://files.mkgmap.org.uk/detail/483</a>
Gerd
________________________________________
Von: mkgmap-dev <a class="moz-txt-link-rfc2396E" href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk"><mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im Auftrag von Ranko Jaksic <a class="moz-txt-link-rfc2396E" href="mailto:rjaksic@zgi.hr"><rjaksic@zgi.hr></a>
Gesendet: Donnerstag, 18. Juni 2020 22:14
An: mkgmap-dev
Betreff: [mkgmap-dev] possible echotags enhancement?
Hello,
echotags style command displays the element type and original OSM-Id (as in "Node generated from <OSM-Id>").
Would it be possible to additionally display the original element type for all such "generated from" elements?
(Something like "Node generated from Way <OSM-Id>" or "Way generated from Relation <OSM-Id>")
Background:
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.
This way I can click and easily correct the data in OSM if needed.
A href tag generated this way looks like this: <a href=<a class="moz-txt-link-rfc2396E" href="https://www.openstreetmap.org/way/688658542">"https://www.openstreetmap.org/way/688658542"</a><a class="moz-txt-link-rfc2396E" href="https://www.openstreetmap.org/way/688658542"><https://www.openstreetmap.org/way/688658542></a>>OSM link</a>
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.
For example: with the "--add-pois-to-areas" option a node is generated for each polygon or multipolygon.
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") :(
regards,
Ranko
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
</blockquote>
<br>
</body>
</html>