Пример #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);
        }