Is there a way to access the map coordinates show in qgis status bar? I found only this,
iface.mainWindow().statusBar().currentMessage()
But I know it's not the way.
Or is there any way to capture the coordinates when cursor moves on map?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityYou can get what you see down there using these methods:
iface.mapCanvas().extent().center()
iface.mapCanvas().extent().toString()