Select to view content in your preferred language

WMS weather service in Flex Viewer

2718
3
07-27-2011 07:20 AM
MatthiasPfeiffer
Occasional Contributor
Guys, there is a pretty good weather WMS service available which I want to use in my Flex Viewer (2.3.1) map. Unfortunately I can't get it to work. I see a time stamp in the upper left corner, so it seems that the connection in general is ok. But there is no map visible.

It works fine in ArcMap/ArcCatalog and I took all the information from there.

I tried this:
<layer label="Weather Data" type="wms" visible="true" skipgetcapabilities="true" version="1.1.1" visiblelayers="Wind[m/s]" wkid="4326"
                   url="http://openmetoc.met.no/metoc/metocwms?"/>

Any ideas?

Thanks
Matthias
Tags (2)
0 Kudos
3 Replies
DavidStajan
Occasional Contributor
Yes I'm having a similar issue with the flexviewer.  This is what I have discovered.

My basemap is a bing map so it's projected in web mercator (102100).  However the wms doesn't support that so you're to specify the wkid in the layer configuration.

This is my wms layer configuration

<layer label="Fire" type="wms" visible="true" alpha="0.70"  skipgetcapabilities="true" visiblelayers="fires24" version="1.1.1" url="http://firefly.geog.umd.edu/wms/wms?" wkid="4326"/>

However when I look at the calls being made in firebug it doesn't seem be re-projecting the bbox it's sending to the wms server.  In response the wms server is send back a blank image.

for example here's the wms call when I don't add the wkid

http://firefly.geog.umd.edu/wms/wms?STYLES=&VERSION=1%2E1%2E1&FORMAT=image%2Fpng&SERVICE=WMS&SRS=EPS...

and here's the call when I do add the wkid

http://firefly.geog.umd.edu/wms/wms?STYLES=&VERSION=1%2E1%2E1&FORMAT=image%2Fpng&SERVICE=WMS&SRS=EPS...

The only difference in the two calls is the srs parameter.  Shouldn't the bbox be in the projection being requested?  Is this a bug in the api?

thanks,
DaviD
0 Kudos
ChadKijewski
Emerging Contributor
Got something from the server to pop up (Bunch of polygons over northern and western Europe), I'm not sure if it's what you want though.

Using ESRI Streets as the basemap:

<layer label="Winds" type="wms" visible="true" alpha="0.9" url="http://openmetoc.met.no/metoc/metocwms?" version="1.1.1" wkid="32633" skipgetcapabilities="true" visiblelayers="ECMWF-IFS_2:GRD"/>

So best guess I have, DStajan hit it on the head that your WKID may have been incorrect (4326 doesn't return anything, but 32632 and 32633 both do), and you seem to be using the wrong name for visible layers (ArcCatalog returns ECMWF-IFS_2:GRD as the name for Wind [m/s] when you look at its properties).

Edit: Image of output / location of layer name @ http://i.imgur.com/znubh.jpg
0 Kudos
MatthiasPfeiffer
Occasional Contributor
Your're right Chad. 4326 doesn't retrun anything. The wkids for the UTM zones work fine. And of course, I used the wrong layer names.

Thanks
Matthias
0 Kudos