On dimanche 29 novembre 2020 22:45:59 CET Paul Harwood wrote: > Hi > > I am asking just in case someone has solved this problem already. > > Does anyone know of a way to load NMEA format GPS data as OGR points in > GDAL?
Yes, through the GPSBabel driver ( https://gdal.org/drivers/vector/gpsbabel.html ) provided the gpsbabel executable is accessible through the PATH. $ echo '$GPGGA,194546.127,5231.525,N,01323.391,E,1,12,1.0,0.0,M,0.0,M,,*6E $GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30 $GPRMC,194546.127,A,5231.525,N,01323.391,E,2372.1,093.7,200220,000.0,W*40 $GPGGA,194547.127,5231.456,N,01324.467,E,1,12,1.0,0.0,M,0.0,M,,*63 $GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30 $GPRMC,194547.127,A,5231.456,N,01324.467,E,3968.7,122.8,200220,000.0,W*4F $GPGGA,194548.127,5230.657,N,01325.713,E,1,12,1.0,0.0,M,0.0,M,,*6F $GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30 $GPRMC,194548.127,A,5230.657,N,01325.713,E,3968.7,122.8,200220,000.0,W*43' > test.nmea $ ogrinfo test.nmea INFO: Open of `test.nmea' using driver `GPSBabel' successful. 1: tracks (Multi Line String) 2: track_points (Point) Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
