
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="https://www.openstreetmap.org/way/688658542">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

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: http://files.mkgmap.org.uk/detail/483 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542>>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

Hi I also use this as a way of investigating the results and improve the map 😊 Very handy for less technical users as myself, easier then overpass turbo. I read the mkgmap echotags output in excel and get clickable http links to all output for free. If the 'Node generated from' is an artificial node it will never work. But still there are also a lot of nodes which today correctly mention the id its generated from. 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 It can be solved in the relations file by adding a tag to all multipolygon relations. Based on that value (which appears in the echotags) you can decide to use either WAY or RELATION in the HTTP request. Never implemented it that way because I guess it’s a lot overhead I'll try the patch, nice feature ! Kind regards Joris -----Oorspronkelijk bericht----- Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Gerd Petermann Verzonden: vrijdag 19 juni 2020 10:58 Aan: mkgmap-dev <mkgmap-dev@lists.mkgmap.org.uk> Onderwerp: Re: [mkgmap-dev] possible echotags enhancement? 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: http://files.mkgmap.org.uk/detail/483 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542>>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

Hi Gerd, Thanks, this is exactly what I need! I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :) 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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed. I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :) Ranko On 19.06.2020. 10:57, Gerd Petermann wrote:
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: http://files.mkgmap.org.uk/detail/483
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542>>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
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi I tested as well, very nice! There is one missing I guess ? and that is "Node generated from 3598483" Perfect: Way generated from relation 9262523 https://www.openstreetmap.org/relation/9262523 Not yet working Node generated from 3598483 Would be nice if it would be recognisable as well https://www.openstreetmap.org/relation/3598483 Kind regards Joris Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Ranko Jaksic Verzonden: vrijdag 19 juni 2020 13:17 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: Re: [mkgmap-dev] possible echotags enhancement? Hi Gerd, Thanks, this is exactly what I need! I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :) 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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed. I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :) Ranko On 19.06.2020. 10:57, Gerd Petermann wrote: 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: http://files.mkgmap.org.uk/detail/483 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr><mailto:rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542>>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 _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Joris, I cannot reproduce the message "Node generated from 3598483". Do you have more information for me? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Joris Bo <jorisbo@hotmail.com> Gesendet: Freitag, 19. Juni 2020 13:39 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] possible echotags enhancement? Hi I tested as well, very nice! There is one missing I guess ? and that is “Node generated from 3598483” Perfect: Way generated from relation 9262523 https://www.openstreetmap.org/relation/9262523 Not yet working Node generated from 3598483 Would be nice if it would be recognisable as well https://www.openstreetmap.org/relation/3598483 Kind regards Joris Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Ranko Jaksic Verzonden: vrijdag 19 juni 2020 13:17 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: Re: [mkgmap-dev] possible echotags enhancement? Hi Gerd, Thanks, this is exactly what I need! I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :) 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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed. I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :) Ranko On 19.06.2020. 10:57, Gerd Petermann wrote: 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: http://files.mkgmap.org.uk/detail/483 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr><mailto:rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542>>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 _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, https://www.openstreetmap.org/relation/3598483 3598483 is a relation that consists of a way and a node, maybe it is handled differently then relations consisting of only ways? Ranko On 19.06.2020. 14:47, Gerd Petermann wrote:
Hi Joris,
I cannot reproduce the message "Node generated from 3598483". Do you have more information for me?
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Joris Bo <jorisbo@hotmail.com> Gesendet: Freitag, 19. Juni 2020 13:39 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] possible echotags enhancement?
Hi
I tested as well, very nice!
There is one missing I guess ? and that is “Node generated from 3598483”
Perfect: Way generated from relation 9262523 https://www.openstreetmap.org/relation/9262523
Not yet working Node generated from 3598483 Would be nice if it would be recognisable as well https://www.openstreetmap.org/relation/3598483
Kind regards Joris
Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Ranko Jaksic Verzonden: vrijdag 19 juni 2020 13:17 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: Re: [mkgmap-dev] possible echotags enhancement?
Hi Gerd,
Thanks, this is exactly what I need!
I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :)
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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed.
I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :)
Ranko
On 19.06.2020. 10:57, Gerd Petermann wrote:
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:
http://files.mkgmap.org.uk/detail/483
Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr><mailto:rjaksic@zgi.hr>
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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542>>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
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Ranko, I simply see no way how the patched mkgmap can produce the string "generated from" followed by a number. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr> Gesendet: Freitag, 19. Juni 2020 14:56 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] possible echotags enhancement? Hi Gerd, https://www.openstreetmap.org/relation/3598483 3598483 is a relation that consists of a way and a node, maybe it is handled differently then relations consisting of only ways? Ranko On 19.06.2020. 14:47, Gerd Petermann wrote:
Hi Joris,
I cannot reproduce the message "Node generated from 3598483". Do you have more information for me?
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Joris Bo <jorisbo@hotmail.com> Gesendet: Freitag, 19. Juni 2020 13:39 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] possible echotags enhancement?
Hi
I tested as well, very nice!
There is one missing I guess ? and that is “Node generated from 3598483”
Perfect: Way generated from relation 9262523 https://www.openstreetmap.org/relation/9262523
Not yet working Node generated from 3598483 Would be nice if it would be recognisable as well https://www.openstreetmap.org/relation/3598483
Kind regards Joris
Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Ranko Jaksic Verzonden: vrijdag 19 juni 2020 13:17 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: Re: [mkgmap-dev] possible echotags enhancement?
Hi Gerd,
Thanks, this is exactly what I need!
I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :)
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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed.
I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :)
Ranko
On 19.06.2020. 10:57, Gerd Petermann wrote:
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:
http://files.mkgmap.org.uk/detail/483
Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr><mailto:rjaksic@zgi.hr>
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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542>>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
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd I'm very sorry, second time I mistaken ☹ Previously it was "Node generated from" and now it is "Node generated from Way" and "Node generated from Relation" where I only happily focused on the new 'relation' not seeing also the other one changed. So it does work perfectly for both. Very happy with it, sorry for the noise, Kind regards Joris -----Oorspronkelijk bericht----- Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> Namens Gerd Petermann Verzonden: vrijdag 19 juni 2020 14:48 Aan: Development list for mkgmap <mkgmap-dev@lists.mkgmap.org.uk> Onderwerp: Re: [mkgmap-dev] possible echotags enhancement? Hi Joris, I cannot reproduce the message "Node generated from 3598483". Do you have more information for me? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Joris Bo <jorisbo@hotmail.com<mailto:jorisbo@hotmail.com>> Gesendet: Freitag, 19. Juni 2020 13:39 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] possible echotags enhancement? Hi I tested as well, very nice! There is one missing I guess ? and that is “Node generated from 3598483” Perfect: Way generated from relation 9262523 https://www.openstreetmap.org/relation/9262523 Not yet working Node generated from 3598483 Would be nice if it would be recognisable as well https://www.openstreetmap.org/relation/3598483 Kind regards Joris Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> Namens Ranko Jaksic Verzonden: vrijdag 19 juni 2020 13:17 Aan: mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> Onderwerp: Re: [mkgmap-dev] possible echotags enhancement? Hi Gerd, Thanks, this is exactly what I need! I tested "Node generated from" and it works as expected. 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). One link would work and the other not. Now I can always generate only one (correct!) link :) 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. When you open log.html you can click on the link to open that element in OSM and quickly edit if needed. I have no ready example for "(Joined)Way generated from" at the moment (I will test it when I find one), but I think you can commit this change... :) Ranko On 19.06.2020. 10:57, Gerd Petermann wrote: 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: http://files.mkgmap.org.uk/detail/483 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ranko Jaksic <rjaksic@zgi.hr<mailto:rjaksic@zgi.hr>><mailto:rjaksic@zgi.hr> 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="https://www.openstreetmap.org/way/688658542"<https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542><https://www.openstreetmap.org/way/688658542>>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 _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk%3cmailto:mkgmap-dev@lists.mkgmap.org.uk>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Gerd Petermann
-
Joris Bo
-
Ranko Jaksic