Re: [Qgis-user] Replay GPS data

2022-07-16 Thread Greg Troxel via Qgis-user

Brent Wood via Qgis-user  writes:

> I have a log file of GPS NMEA messages captured during a survey.
>
> I'm working with QGIS for real time data capture during these surveys.
>
> For demo/training/dev purposes I'd like to pass the file of GPS messages into 
> QGIS via teh GPS panel to simulate the real world survey.
>
> Any suggestions as to how I can do this (running on Linux at present)??
>
> I've tried gpsfake with gpsd but just run into network/port errors I
> can't resolve. I can uset netcat -l to listen then send the NMEA
> messages via netcat using a bash script, but can't see how to get
> netcat to work with QGIS as a listener.

[I am a minor gpsd maintainer.]

I would try to understand the various mechanisms qgis has for dealing
with live data, and then write python code to meet one of those
interfaces.

I found this which may or may not be helpful:
  https://gis.stackexchange.com/questions/368388/nmea-data-feed-into-qgis

The documentation says that live tracking can use a device or gpsd:
  
https://docs.qgis.org/3.22/en/docs/user_manual/working_with_gps/live_GPS_tracking.html

It is possible you can create a named fifo, read from that in qgis and
then send to it.  Or to use a pseudoterminal.

But, I suspect it is easiest to use gpsd, and to figure out how to make
gpsfake work.  There is a "once" and a delay option.  I think what you
really want is an option to send the NMEA sentences based on their
timestamps with an offset so you get real-time playback.  However you
can probably grep for GGA and then you'll have a regular stream of
sentences at 1 Hz.

gpsd also supports udp sources.  You could send nmea in udp to it via
python or maybe even netcat, and avoid gpsfake.

You didn't describe your errors but debugging gpsfake is off topic for
this list anyway.  Brief observations:

  - gpsd wants to listen on 2947, so running two of them without
choosing alternate ports does not go well, and you want the gpsfake
gpsd on 2947 so that qgis connects to it

  - the gpsd project only provides help for the most recent release, or
the tip of git.  The project does not help with systemd
configuration, so if you are running gpsd via systemd or any other
OS-provided glue, you should entirely deconfigure it and reproduce
your problem with just the command line before asking for help.  (I
realize this probably seems unfriendly to LTS users, but the other
side of the coin is that LTS is unfriendly to maintainers, with LTS
distributions having customers, sometimes even paid, and then asking
others to provide free support for no-longer-maintained versions.)

Greg


signature.asc
Description: PGP signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Replay GPS data

2022-07-15 Thread Brent Wood via Qgis-user
Hi,

I have a log file of GPS NMEA messages captured during a survey.

I'm working with QGIS for real time data capture during these surveys.

For demo/training/dev purposes I'd like to pass the file of GPS messages into 
QGIS via teh GPS panel to simulate the real world survey.

Any suggestions as to how I can do this (running on Linux at present)??

I've tried gpsfake with gpsd but just run into network/port errors I can't 
resolve. I can uset netcat -l to listen then send the NMEA messages via netcat 
using a bash script, but can't see how to get netcat to work with QGIS as a 
listener.


Any advice appreciated!

Thanks

Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529

From: Qgis-user  on behalf of Nyall Dawson 
via Qgis-user 
Sent: Tuesday, July 12, 2022 13:08
To: Piet 
Cc: qgis-user 
Subject: Re: [Qgis-user] Qgis 3.22.8 Error messages displayed in the GUI

On Mon, 11 Jul 2022 at 21:40, Piet via Qgis-user
 wrote:
>
> Dear List,
>
> I used a selfcompiled Qgis, build with 'Debug-Option' set in ccmake.
>
> Now there's a small red window in the main window which displayed 
> errors/warning.
>
> In my case "Qt: QXcbConnection: XCB error: 3 (BadWindow), sequence: 65154, 
> resource id: 11286601, major code: 40 (TranslateCoords), minor code: 0",
>
> which seems to be a known QT-Bug.
>
> Can I turn of this error window?

This particular one is now filtered out for 3.26+, as it's not
reflective of a bug in QGIS.

The others still remain, as they likely ARE indicative of something
which needs fixing in QGIS. If you encounter them, you should open
tickets for each so that the underlying cause can be identified.

Nyall

>
> Because it's upset me a bit and I can see the warnings in a console as well.
>
> Thank you for any hint!
>
> Kind regards
>
> Piet
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: 
> https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-userdata=05%7C01%7Cbrent.wood%40niwa.co.nz%7Ca0912e2b56df488e420408da63a31907%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C637931849460706969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=ns3H5qS%2B0FYP5BVATejnMsFyGGc7%2BTPvKV%2BDicosqZM%3Dreserved=0
> Unsubscribe: 
> https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-userdata=05%7C01%7Cbrent.wood%40niwa.co.nz%7Ca0912e2b56df488e420408da63a31907%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C637931849460706969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=ns3H5qS%2B0FYP5BVATejnMsFyGGc7%2BTPvKV%2BDicosqZM%3Dreserved=0
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: 
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-userdata=05%7C01%7Cbrent.wood%40niwa.co.nz%7Ca0912e2b56df488e420408da63a31907%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C637931849460706969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=ns3H5qS%2B0FYP5BVATejnMsFyGGc7%2BTPvKV%2BDicosqZM%3Dreserved=0
Unsubscribe: 
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-userdata=05%7C01%7Cbrent.wood%40niwa.co.nz%7Ca0912e2b56df488e420408da63a31907%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C637931849460706969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=ns3H5qS%2B0FYP5BVATejnMsFyGGc7%2BTPvKV%2BDicosqZM%3Dreserved=0
[https://www.niwa.co.nz/static/niwa-2018-horizontal-180.png] 

Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529

National Institute of Water & Atmospheric Research Ltd (NIWA)
301 Evans Bay Parade Hataitai Wellington New Zealand
Connect with NIWA: niwa.co.nz 
Facebook 
LinkedIn 
Twitter 
Instagram
To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user