1

Is there a way to access the status and the XY-coordinates from a GPS-connection established by the GPS-widget in QGIS 3 via python? I want to establish the connection with the widget to have better control of the connection (like changing ports) and status checks, but need the coordinates inside a python plugin.

  • This is a good one! There is a panel to view GPS in the menu View- Panels- GPS information. There must be a way to get that info. – Cary H Dec 21 '18 at 19:17
  • Seems to be a bigger issue.. even in the QGIS mailinglist I got no reaction to this question. – Firefly Dec 22 '18 at 9:23
  • 1
    When keeping the map always centered over the current position, it is possible to get the coordinates with canvas = iface.mapCanvas() canvas.center() . – Firefly Dec 28 '18 at 21:19

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.