/// <summary> /// Transfers the Lat/Lon and Elevations /// </summary> /// <param name="dto"></param> /// <param name="xml"></param> private void ParseGeographicData(StationInfoDto dto, responseDataStation xml) { dto.GeographicData = new GeographicDataDto() { Latitude = xml.latitude, Longitude = xml.longitude, Elevation = xml.elevation_m }; dto.State = xml.state; dto.Country = xml.country; }
/// <summary> /// Transfers the ICAO /// </summary> /// <param name="dto"></param> /// <param name="xml"></param> private void ParseSiteType(StationInfoDto dto, responseDataStation xml) { if (xml.site_type == null) { return; } if (xml.site_type.METAR != null) { dto.SiteType.Add(SiteType.METAR); } if (xml.site_type.NEXRAD != null) { dto.SiteType.Add(SiteType.NEXRAD); } if (xml.site_type.rawinsonde != null) { dto.SiteType.Add(SiteType.Rawinsonde); } if (xml.site_type.SYNOPS != null) { dto.SiteType.Add(SiteType.SYNOPS); } if (xml.site_type.TAF != null) { dto.SiteType.Add(SiteType.TAF); } if (xml.site_type.WFO_office != null) { dto.SiteType.Add(SiteType.WFOOffice); } if (xml.site_type.wind_profiler != null) { dto.SiteType.Add(SiteType.WindProfiler); } }
/// <summary> /// Transfers the ICAO /// </summary> /// <param name="dto"></param> /// <param name="xml"></param> private void ParseWMOIdentifier(StationInfoDto dto, responseDataStation xml) { dto.WMOID = xml.wmo_id; }
/// <summary> /// Transfers the WMO Identifier /// </summary> /// <param name="dto"></param> /// <param name="xml"></param> private void ParseSiteName(StationInfoDto dto, responseDataStation xml) { dto.Name = xml.site; }
/// <summary> /// Transfers the ICAO /// </summary> /// <param name="dto"></param> /// <param name="xml"></param> private void ParseIdentifier(StationInfoDto dto, responseDataStation xml) { dto.ICAO = xml.station_id; }