Select to view content in your preferred language

WMS NowCoast Connection Problem

959
3
11-15-2011 11:53 AM
MargoBlosser
Deactivated User
I am trying to add the Air Temperature layer RTMA_AIR_AIRTEMP from the WMS service at nowcoast.noaa.gov.  I have not been able to find an ArcServer Site with this information so I have to use the WMS service. The projection of the service is mercator:3857.

All the arcgisonline layers display fine but not the WMS layer.

From Fiddler I get:

"http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/analyses?service=Wms?&SERVICE=WMS"
&REQUEST=GetMap&WIDTH=1583&HEIGHT=1000&FORMAT=image/png&LAYERS=RTMA_RAS_AIRTEMP
&STYLES=&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&VERSION=1.1.1
&SRS=EPSG:3857&bbox=-14146326.877,4730925.48441977,-12388811.793,5841168.74658023

My XAML is:

<esri:Map x:Name="MyMap"  Extent="-14146326.877,4914555.193,-12388811.793,5657539.038" Height="1000" ExtentChanged= "MyMap_ExtentChanged" Loaded="MyMap_Loaded">

                    <esri:ArcGISTiledMapServiceLayer ID="Road Map" Visible="True"
                            Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
                    <esri:ArcGISTiledMapServiceLayer ID="Aerials" Visible="True" Opacity="0.0"
             Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" />
                    <esri:ArcGISTiledMapServiceLayer ID="USGS Topo Map" Visible="False"
                            Url="http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"/>                

                  

                   <esri:WmsLayer ID="OtherWMSLayer"                     
                           Url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/analyses?service=Wms?"       
                               SkipGetCapabilities="True"  
                           Layers="RTMA_RAS_AIRTEMP"
                           Version="1.1.1"
                           Opacity="0.7"
                              InitializationFailed="WmsLayer_InitializationFailed"   
                               />              

Does anyone have any suggestions; I can???t see why this does not display the WMS layer?

Thanks for any info you can provide,

Margo
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
Your URL is incorrect. There are 2 '?'.

Try with :

<esri:WmsLayer ID="OtherWMSLayer"
Url=http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/analyses
SkipGetCapabilities="True"
Layers="RTMA_RAS_AIRTEMP"
Version="1.1.1"
Opacity="0.7"
InitializationFailed="WmsLayer_InitializationFailed"
/>

Note : it's not useful to add the parameter SERVICE=WMS. Should not be an issue though.
0 Kudos
MargoBlosser
Deactivated User
Dominique thank you!

The correct URL helped but I am still can�??t display any data from the service.

In fiddler I get a �??Exception in GetMap reply.
[ERR0924] Requested image is too big and cannot be created.�?�

In a different forum I have found a post about  this error message from an WMS service

�??when users are trying to view this service in an application that is maximized to the full extent of a large monitor and the server cannot produce an image that will fit the entire screen.�?�

So I changed my display from full screen to a smaller extent and the map service displays the data. 

Has anyone experienced this issue and found a workaround?  The WMS service is from ArcIMS.

Best Regards,

Margo
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Looks like a limitation of this WMS service.

At this time, I don't figure out any workaround except setting a max height and witdh for the map (need to know the max values for the service).
Perhaps asking in ArcIMS forum might help.
0 Kudos