开发者

How to get radar images to a .NET program

开发者 https://www.devze.com 2023-01-05 05:40 出处:网络
How do I get radar images to a .Net program using this service: http://www.nws.noaa.gov/forecasts/xml/

How do I get radar images to a .Net program using this service: http://www.nws.noaa.gov/forecasts/xml/

I literally have no clue where to start. If someone could provide some sample code or maybe direct me to a tutorial of some kind that would be awesome.

开发者_JAVA百科

Thanks Alot


Right-click your project, Add Service Reference... Then under Address put in http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl and click Go. Choose a Namespace in the bottom. Then I think you can use it something like:

using AppClass.ServiceReference1;
...
ndfdXMLPortTypeClient service = new ndfdXMLPortTypeClient();
string data = service.NDFDgen(39, -77, productType.timeseries, DateTime.Now, DateTime.Now, new weatherParametersType() { maxt = true });

data is "DWML encoded NDFD data for a point", whatever that means (though I would guess D* Weather Markup Language). I don't know how to decode DWML, or what that data contains. You may need another method to get radar images.

0

精彩评论

暂无评论...
验证码 换一张
取 消