Select to view content in your preferred language

WMS for nowCOAST FV 2.4

1214
10
02-10-2012 10:40 AM
JeffreyUtter
Deactivated User
I'm trying to get the wms feed from nowCOAST, but having difficulty.
My code
<layer label="nowCOAST"
type="wms"
visible="true"
skipgetcapabilities="true"
version="1.1.1"
url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs?service=wms&version=1.1.1&request=GetMap&forma...>
visiblelayers="NWS RIDGE Radar"
wkid="3857">
</layer>

From http://nowcoast.noaa.gov/
I want to concentrate on a (1.) Location, Alaska, ability to bring in all (2.) Information, (3.) Variable equals reflectivity, and showing Legend.
Can someone help?
Thanks.
Jeff
Tags (2)
0 Kudos
10 Replies
JeffreyUtter
Deactivated User
OK, I have figured it out, for those who want to know....
code:
<layer label="NOAA Infrared Satellite"
type="wms"
visible="false"
visiblelayers="RAS_RIDGE_NEXRAD"
skipgetcapabilities="true" alpha="0.6"
url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs?srs=EPSG:102113">

</layer>

reference the different Layer ID(s) at http://nowcoast.noaa.gov/help/mapservices.shtml?name=mapservices
0 Kudos
JeffreyUtter
Deactivated User
Ran into problem adding a Legend.
<layer label="NOAA Infrared Satellite"
type="wms"
visible="false"
visiblelayers="RAS_RIDGE_NEXRAD"
skipgetcapabilities="true" alpha="0.6"
url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs?srs=EPSG:102113"/
url="http://nowcoast.noaa.gov/LayerInfo?layer=RAS_RIDGE_NEXRAD&data=legend"/>

Error 1090

Anyone help?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Yes the help is what you are attempting is not possible:

<layer label="NOAA Infrared Satellite"
type="wms"
visible="false"
visiblelayers="RAS_RIDGE_NEXRAD"
skipgetcapabilities="true" alpha="0.6"
url="http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs?srs=EPSG:102113"/
url="http://nowcoast.noaa.gov/LayerInfo?layer=RAS_RIDGE_NEXRAD&data=legend"/>


You can not have two url attributes in the layer tag. I don't know of any capability to get the WMS legend currently in the viewer.
0 Kudos
JeffreyUtter
Deactivated User
Hmmm, I was reading their latest page on generating a Legend.
http://nowcoast.noaa.gov/help/layerinfo.shtml?name=layerinfo
Says "In order to retrieve data from this service, the user must include valid values for the parameters "layer" and "data". The "layer" parameter references the target layer's identifier, while "data" represents the desired type of data to be returned. "
On the bottom of the page, it says Example of LayerInfo Requests:
To obtain a Legend for the Weather Radar Mosiac layer:
     http://nowcoast.noaa.gov/LayerInfo?layer=RAS_RIDGE_NEXRAD&data=legend
is just on of them, which is the one I was trying.
Seems to me, there has to be an answer for the correct Flex code.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Well those directions are general WMS directions and don't necessarily pertain to Flex Viewer. Now if you just put that url in the brower address bar then yes an image would be generated with the legend, but that does not mean that there is something in the viewer that will utilize that capability.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Well I just tested and you can use the URL for the StaticImageWidget but you will have to escape the ampersand symbol in the url:

<imageurl>http://nowcoast.noaa.gov/LayerInfo?layer=RAS_RIDGE_NEXRAD&amp;data=legend</imageurl>
0 Kudos
JeffreyUtter
Deactivated User
I'll be back in the office next week. So I'll try it them.
From talking to others, it is extremely important to have a legend and/or supporting popup data for WMS in general.
It could be a game breakerfor some.
Jeff
0 Kudos
JeffreyUtter
Deactivated User
I coded the StaticImage widget and the Legend does come up, but it comes up twice, one the lower left corner, and the other the lower right corner. Then the Flex Viewer hangs, with the timer keeps going.
Any thoughts?
The xml code for StaticImage:
<?xml version="1.0" ?>
<configuration label="Esri Globe">
    <imageurl>http://nowcoast.noaa.gov/LayerInfo?layer=RAS_RIDGE_NEXRAD;data=legend</imageurl>
    <linkurl>http://www.esri.com</linkurl>
</configuration>

<!--
    See Static Image widget documentation at
    http://links.esri.com/staticimagewidget
-->
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeffrey,

   Do you have two staticImageWidgets in your main config.xml?

<widget bottom="35" right="5" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>


I had no problem doing this.
0 Kudos