Decode/Show Grib2 files on Bing Maps
-
Monday, February 13, 2012 10:42 PM
I'm trying to embed Grib2 files (.grd) into Bing Maps, does anyone have any experience on this? Gribs files are provided from a third party weather data provider and a sample .grd file can be downloaded from the link below.
http://www.box.com/s/osi42795nib43nrzh41j
Thanks in advance,
ANC
- Moved by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 1:33 PM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Tuesday, February 14, 2012 10:16 AMModerator
I don't have any direct experience of GRIB but, having read a little about it, it seems like a relatively straightforward binary-encoded format. You'll need to convert it into something usable first - the GRIBtoXML application seems like a reasonable place to start - http://www.tecepe.com.br/nav/vrtool/gribtoxml.htm
One you've got the data in readable XML format or similar then you can process it and add the elements it contains to a new shapelayer on the map.
twitter: @alastaira blog: http://alastaira.wordpress.com/
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Monday, February 27, 2012 11:32 AM
-
Tuesday, February 14, 2012 7:20 PMYour idea sounded good but that software didn't work for me, It keeps giving me error and never converts, propbably my grib files are not in the same format. I also check some links in that website, there are some tools to decode Grib files but they are mainly for C, i am lloking for a .NET C# solution, and converting will be another process thats why I can not use XML conversion but thanks for idea, it was helpful.
ANC
-
Wednesday, February 15, 2012 9:42 AMOwnerIf you are feeling adventurous you could write a binary reader for this: http://www.wmo.int/pages/prog/www/WMOCodes/Guides/GRIB/GRIB1-Contents.html
http://rbrundritt.wordpress.com
-
Wednesday, February 15, 2012 7:50 PM
Those are actually Grib2 files as mentioned in the title, guide can be found here: http://dss.ucar.edu/docs/formats/grib2/grib2doc/
I'm now testing degrib console application to convert them into ESRI shape file then I will be using SharpMap to embed into Bing Maps, hope that will do it. If that doesn't work, will probably write my own binary reader for GRIB2 files.
Thank you all for your replies.
ANC

