private gpxWpt ConvertToWayPoint(XSD.Ver10.gpxTrkTrksegTrkpt trackSegmentWaypoint) { XSD.Ver10.gpxWpt wpt = new gpxWpt(); wpt.lat = trackSegmentWaypoint.lat; wpt.lon = trackSegmentWaypoint.lon; wpt.ele = trackSegmentWaypoint.ele; wpt.eleSpecified = trackSegmentWaypoint.eleSpecified; wpt.ageofdgpsdata = trackSegmentWaypoint.ageofdgpsdata; wpt.ageofdgpsdataSpecified = trackSegmentWaypoint.ageofdgpsdataSpecified; wpt.Any = trackSegmentWaypoint.Any; wpt.cmt = trackSegmentWaypoint.cmt; wpt.desc = trackSegmentWaypoint.desc; wpt.dgpsid = trackSegmentWaypoint.dgpsid; wpt.fix = trackSegmentWaypoint.fix; wpt.fixSpecified = trackSegmentWaypoint.fixSpecified; wpt.geoidheight = trackSegmentWaypoint.geoidheight; wpt.geoidheightSpecified = trackSegmentWaypoint.geoidheightSpecified; wpt.hdop = trackSegmentWaypoint.hdop; wpt.hdopSpecified = trackSegmentWaypoint.hdopSpecified; wpt.magvar = trackSegmentWaypoint.magvar; wpt.magvarSpecified = trackSegmentWaypoint.magvarSpecified; wpt.name = trackSegmentWaypoint.name; wpt.pdop = trackSegmentWaypoint.pdop; wpt.pdopSpecified = trackSegmentWaypoint.pdopSpecified; wpt.sat = trackSegmentWaypoint.sat; wpt.src = trackSegmentWaypoint.src; wpt.sym = trackSegmentWaypoint.sym; wpt.time = trackSegmentWaypoint.time; wpt.timeSpecified = trackSegmentWaypoint.timeSpecified; wpt.type = trackSegmentWaypoint.type; wpt.url = trackSegmentWaypoint.url; wpt.urlname = trackSegmentWaypoint.urlname; wpt.vdop = trackSegmentWaypoint.vdop; wpt.vdopSpecified = trackSegmentWaypoint.vdopSpecified; return wpt; }
private gpxWpt ConvertRouteWaypint(XSD.Ver10.gpxRteRtept routePoint) { XSD.Ver10.gpxWpt wpt = new gpxWpt(); wpt.lat = routePoint.lat; wpt.lon = routePoint.lon; wpt.ele = routePoint.ele; wpt.eleSpecified = routePoint.eleSpecified; wpt.ageofdgpsdata = routePoint.ageofdgpsdata; wpt.ageofdgpsdataSpecified = routePoint.ageofdgpsdataSpecified; wpt.Any = routePoint.Any; wpt.cmt = routePoint.cmt; wpt.desc = routePoint.desc; wpt.dgpsid = routePoint.dgpsid; wpt.fix = routePoint.fix; wpt.fixSpecified = routePoint.fixSpecified; wpt.geoidheight = routePoint.geoidheight; wpt.geoidheightSpecified = routePoint.geoidheightSpecified; wpt.hdop = routePoint.hdop; wpt.hdopSpecified = routePoint.hdopSpecified; wpt.magvar = routePoint.magvar; wpt.magvarSpecified = routePoint.magvarSpecified; wpt.name = routePoint.name; wpt.pdop = routePoint.pdop; wpt.pdopSpecified = routePoint.pdopSpecified; wpt.sat = routePoint.sat; wpt.src = routePoint.src; wpt.sym = routePoint.sym; wpt.time = routePoint.time; wpt.timeSpecified = routePoint.timeSpecified; wpt.type = routePoint.type; wpt.url = routePoint.url; wpt.urlname = routePoint.urlname; wpt.vdop = routePoint.vdop; wpt.vdopSpecified = routePoint.vdopSpecified; return wpt; }