Created
August 17, 2019 00:10
-
-
Save ThomasG77/e9e3d4541836de6f608d7a02b3dde7ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute in the PyQGIS console | |
def showXY(p): | |
print(p.x(), p.y()) | |
currentCanvas = iface.mapCanvas() | |
currentCanvas.xyCoordinates.connect(showXY) | |
# Below enable to "unregister" listening to click event | |
# currentCanvas.xyCoordinates.disconnect(showXY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment