示例#1
0
        private static DataTable InsertGpsRaw(string filePath, InsertDatum datum, InsertConfig.GpsCorrection correction)
        {
            var gpsRawTable = GpsFileHandler.ConvertCsvToDataTable(filePath, datum, correction);

            if (correction == InsertConfig.GpsCorrection.Normal ||
                correction == InsertConfig.GpsCorrection.SpeedLPFMapMatching ||
                correction == InsertConfig.GpsCorrection.MapMatching)
            {
                gpsRawTable = GpsFileHandler.ConvertCsvToDataTable(filePath, datum, correction);
            }
            else if (correction == InsertConfig.GpsCorrection.DopplerSpeed || correction == InsertConfig.GpsCorrection.DopplerNotMM)
            {
                gpsRawTable = GpsFileHandler.ConvertCsvToDataTableDoppler(filePath, datum, correction);
            }

            if (gpsRawTable.Rows.Count != 0)
            {
                if (correction == InsertConfig.GpsCorrection.Normal ||
                    correction == InsertConfig.GpsCorrection.SpeedLPFMapMatching ||
                    correction == InsertConfig.GpsCorrection.MapMatching)
                {
                    AndroidGpsRawDao.Insert(gpsRawTable);
                }
                else if (correction == InsertConfig.GpsCorrection.DopplerSpeed || correction == InsertConfig.GpsCorrection.DopplerNotMM)
                {
                    AndroidGpsRawDopplerDao.Insert(gpsRawTable);
                }
            }

            return(gpsRawTable);
        }
示例#2
0
        private static DataTable InsertGpsRaw(string filePath, InsertDatum datum)
        {
            var gpsRawTable = GpsFileHandler.ConvertCsvToDataTable(filePath, datum);

            if (gpsRawTable.Rows.Count != 0)
            {
                AndroidGpsRawDao.Insert(gpsRawTable);
            }

            return(gpsRawTable);
        }