Assumed I click around on a map, while I need to export the coordinates of the points where I have clicked into a simple text file. In best case, writing into the text file should be performed automatically.
Example:
- Mouse click 1 will write
52.516417, 13.378361into the table - Moving the mouse
- Mouse click 2 will write
52.556877, 14.358861into the table - Moving the mouse
- Mouse click 3 will write
current coordinatesinto the table
Background:
OpenStreetMap is using polygon lines to visualize streets. I want to create a custom route along specific streets and hereby export the coordinates of the points where I have clicked.
Is this possible in OpenStreetMap or QGIS?
The approach of eurojam is great! Unfortunately, it does not work on my very old version of QGIS as I receive the following error:
Is this caused due to old python or due to old QGIS? Would it be possible to refactore the python code so it works on QGIS 2.14.11 as well?


