private DataRow CreateRow(DataTable dt, FtTransmitterGpsDataEntry gpsDataEntry)
        {
            DataRow result = dt.NewRow();

            result.ItemArray = (new object[]
                                { gpsDataEntry.StartTimestamp, gpsDataEntry.Rechtswert, gpsDataEntry.Hochwert, gpsDataEntry.Longitude, gpsDataEntry.Latitude });
            return(result);
        }
        private void GpsDataPointToFeatureRow(int tagID, FeatureSet fs, FtTransmitterGpsDataEntry gpsPoint)
        {
            DotSpatial.Topology.Point point = null;
            if (!gpsPoint.Rechtswert.HasValue || !gpsPoint.Hochwert.HasValue)
            {
                point = new DotSpatial.Topology.Point(double.NaN, double.NaN);
            }
            else
            {
                point = new DotSpatial.Topology.Point(gpsPoint.Rechtswert.Value, gpsPoint.Hochwert.Value);
            }
            var feature = fs.AddFeature(point);

            feature.DataRow.BeginEdit();
            feature.DataRow["TagID"]     = tagID;
            feature.DataRow["Timestamp"] = gpsPoint.StartTimestamp;
            if (gpsPoint.TimestampOfFix.HasValue)
            {
                feature.DataRow["TimestampOfFix"] = gpsPoint.TimestampOfFix;
            }
            feature.DataRow["UsedTimeToGetFix"] = gpsPoint.UsedTimeToGetFix;
            if (gpsPoint.HeightAboveEllipsoid.HasValue)
            {
                feature.DataRow["HeightAboveEllipsoid"] = gpsPoint.HeightAboveEllipsoid.Value;
            }
            if (gpsPoint.HeadingDegree.HasValue)
            {
                feature.DataRow["HeadingDegree"] = gpsPoint.HeadingDegree.Value;
            }
            if (gpsPoint.SpeedOverGround.HasValue)
            {
                feature.DataRow["SpeedOverGround"] = gpsPoint.SpeedOverGround.Value;
            }
            feature.DataRow["Status"]              = gpsPoint.Status;
            feature.DataRow["BatteryVoltage"]      = gpsPoint.BatteryVoltage;
            feature.DataRow["BatteryVoltageAtFix"] = gpsPoint.BatteryVoltageFix;
            feature.DataRow["Temperature"]         = gpsPoint.Temperature;

            feature.DataRow.EndEdit();
        }