예제 #1
0
def test_glonass_parse_from_file():
    def update(pos, info):
        pass

    gps = GPSService()
    gps.gpsposition.connect(update)
    wgs84CRS = QgsCoordinateReferenceSystem(4326)
    gps.crs = wgs84CRS
    with open(data("glonass_gps_log.nmea"), "r") as f:
        for line in f:
            line = line.strip("\n")
            gps.parse_data(line)
예제 #2
0
파일: test_gps.py 프로젝트: loongfee/Roam
def test_glonass_parse_from_file():
    def update(pos, info):
        pass

    gps = GPSService()
    gps.gpsposition.connect(update)
    wgs84CRS = QgsCoordinateReferenceSystem(4326)
    gps.crs = wgs84CRS
    with open(data("glonass_gps_log.nmea"), "r") as f:
        for line in f:
            line = line.strip("\n")
            gps.parse_data(line)