Select to view content in your preferred language

WMS Layer in Flex Viewer

4591
25
Jump to solution
07-11-2012 07:17 AM
ZahidChaudhry
Deactivated User
I am trying to access "nowCOAST 'obs' WMS" (only temperature) in viewer but with no luck. Any help will be highly appreciated (THANKS NOAA in Advanced for still using OLD OLD OLD stuff and not using ArcGIS Server....and much more....)

Here is the URL

http://www.arcgis.com/home/item.html?id=862ea07f603e4a52a4eff50899451176

T
hanks
Tags (2)
0 Kudos
25 Replies
FrankRoberts
Frequent Contributor
I am using the Spatial Reference: 4326 base maps.  I believe that should be compatible with the ones provided by the above service.


ie:
http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer

Thanks for your quick reply,
0 Kudos
DasaPaddock
Esri Regular Contributor
Even though the service says it supports version 1.3.0, I only get blank maps back unless I set the version to 1.1.1 like this:

    <map wraparound180="true" initialextent="-130 30 -115 50" top="40">
     <basemaps>
      <layer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" type="tiled" visible="true"/>
     </basemaps>
        <operationallayers>
            <layer label="Surface Sea Water Velocity" type="wms" visible="true" 
                   visiblelayers="surface_sea_water_velocity"
                   imageFormat="png"
                   alpha="0.6"
                   skipgetcapabilities="true"
                   url="http://hfrnet.ucsd.edu/thredds/wms/HFRNet/USWC/6km/hourly/RTV"
                   version="1.1.1"/>
        </operationallayers>
    </map>
0 Kudos
FrankRoberts
Frequent Contributor
Thanks that was great, not sure how you knew to start backing down the versions, but I will try to remeber that!

This particular WMS service is time enabled, and that can be seen via ArcMap if you add the service directly to ArcMap.  Is there a way to time series the WMS with the FlexViewer or is time only available from true ArcServer services?

Thanks again,
Frank
0 Kudos
YvonneDeus
Emerging Contributor
Hi!
I also try to add a wms - Layer in ArcGis Viewer for flex 3.0.
Thats my code in config.xml:
...
...
<layer label="LINFOS" type="wms" visible="true"
  visiblelayers="LINFOS NRW"
  wkid="31466"    
  imageformat="png" 
  alpha="1" 
  skipgetcapabilities="true"
  url="http://www.wms.nrw.de/umwelt/linfos?"
  version="1.1.1"/>     
</operationallayers>       


I can see the labelName in Flex, but that's all. Anyone an idea?
0 Kudos
DasaPaddock
Esri Regular Contributor
You need to use the Layer's Name value rather than the Title, so try:

visiblelayers="LINFOSNRW"
0 Kudos
YvonneDeus
Emerging Contributor
Thanks, that make sense. But the Layer isn´t still there. Could it be, cause of the interlacing?

[ATTACH=CONFIG]19773[/ATTACH]

And in Flashbuilder I got a *** Security Sandbox-Verletzung *** be cause of "...abgelehnt wegen nicht vorhandener Richtliniendateiberechtigungen"
This should be in english something like:  "access denied cause of failing terms of reference"
But in Arcmap is everything ok. Do I need a crossdomain.xml?
0 Kudos
DasaPaddock
Esri Regular Contributor
A crossdomain.xml is not needed since you have skipgetcapabilities="true". Is your map's spatial reference also 31466 or an equivalent? Can you post a link to your Viewer or your whole map config?
0 Kudos
YvonneDeus
Emerging Contributor
Ah, my flex viewer is Webmercator auxilary sphere (wkid 102100) this is not supported by LINFOS, right? What a pity!
0 Kudos
KathrynSmith
Deactivated User
I realize this is different service, but similar issue...
I am trying to get a WMS service (created by someone else using OpenLayers) in my Flex map viewer (v3.3)
The service:
http://cmgds.marine.usgs.gov/geoserver/track/ows?request=GetCapabilities&service=wms&version=1.1.1
I am using Oceans basemap so the spatial reference of the viewer is web mercator (wkid=102100), right?
And I think this service is wkid=4326
Does that mean I cannot add this service to my viewer? Or can I put this in the call statement? If I can, can you suggest the code for my config.xml?
0 Kudos
DasaPaddock
Esri Regular Contributor
That service supports many projections (see the section of the capabilities with the comment "All supported EPSG projections:") including 3857, which is equivalent to 102100.

Try:

<layer label="Marine" type="wms" visible="true"
       url="http://cmgds.marine.usgs.gov/geoserver/track/ows"
       skipgetcapabilities="true" wkid="3857"
       visiblelayers="lidar"/>
0 Kudos