Select to view content in your preferred language

WMS through ArcGIS Viewer for Flex 3.1 doesn't work

2376
5
Jump to solution
01-12-2013 02:11 PM
deleted-user-dbQhBq-o3nyM
Deactivated User
Sorry, I'm new to the flex viewer. I have been having a lot of problems getting our WMS hooked up to our Flex Viewer. Here is where our WMS is located online:

http://imagery.carbon.utah.gov/latlonghistorical

And here is the web map:

http://maps.carbon.utah.gov/flexviewer/trails/

If you go to the web map, you'll see in the layers widget, it recognizes my WMS layer (CC_WMS) but it doesn't show up. Right above my CC_WMS layer, you'll also see a NRCan layer and if you zoom out to where you can see Canada it show up just fine.

I've gone to my configuration file within the webmap, inserted my WMS information exactly the same as the NRCan layer, that works, and my CC_WMS layer still doesn't work. Below is how I've set up my config.xml file:

<operationallayers>

[INDENT]<layer url="http://imagery.carbon.utah.gov/latlonghistorical" label="CC_WMS" wkid="102100" visible="true" type="wms" visiblelayers="2011_High Resolution Aerial" version="1.1.0" skipgetcapabilities="true"/>

<layer url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" label="NRCan" wkid="900913" visible="true" type="wms" visiblelayers="limits" version="1.1.1" skipgetcapabilities="true"/>[/INDENT]


I've tried putting the WMS in as a basemap layer and as an operational layer. Not sure where it should go as well.

Any help would be great thanks!

Jordan Behunin
Email:jordan.behunin@carbon.utah.gov
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jordan
This is what you would use to make your layer visible if the layer supported WKID 102100, but it does not, it only supports 4326 so unless your map is in 4326 then you will not be able to use this WMS Service.


<layer url="http://Imagery.carbon.utah.gov/latlonghistorical/wms.asp?"  label="CC_WMS" visible="true" type="wms"  visiblelayers="2011_ High Resolution Aerial" version="1.1.0"  skipgetcapabilities="true"/> 


Attached is a screenshot of what your WMS would look like if the map was in 4326 (i.e. you are not using esri basemaps that are tiled in WKID 102100).

[ATTACH=CONFIG]20674[/ATTACH]

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Jordan
This is what you would use to make your layer visible if the layer supported WKID 102100, but it does not, it only supports 4326 so unless your map is in 4326 then you will not be able to use this WMS Service.


<layer url="http://Imagery.carbon.utah.gov/latlonghistorical/wms.asp?"  label="CC_WMS" visible="true" type="wms"  visiblelayers="2011_ High Resolution Aerial" version="1.1.0"  skipgetcapabilities="true"/> 


Attached is a screenshot of what your WMS would look like if the map was in 4326 (i.e. you are not using esri basemaps that are tiled in WKID 102100).

[ATTACH=CONFIG]20674[/ATTACH]

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
MellissaLasslo
Regular Contributor
Jordan
This is what you would use to make your layer visible if the layer supported WKID 102100, but it does not, it only supports 4326 so unless your map is in 4326 then you will not be able to use this WMS Service.


<layer url="http://Imagery.carbon.utah.gov/latlonghistorical/wms.asp?"  label="CC_WMS" visible="true" type="wms"  visiblelayers="2011_ High Resolution Aerial" version="1.1.0"  skipgetcapabilities="true"/> 


Attached is a screenshot of what your WMS would look like if the map was in 4326 (i.e. you are not using esri basemaps that are tiled in WKID 102100).

[ATTACH=CONFIG]20674[/ATTACH]

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:



Robert,
Did you put your code in basemaps or operational layers to get it to work?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mellissa,

   It really does not matter if the map is in a WKID that your WMS supports and the basemaps that you are using are cached in the same WKID.
0 Kudos
MellissaLasslo
Regular Contributor
Mellissa,

   It really does not matter if the map is in a WKID that your WMS supports and the basemaps that you are using are cached in the same WKID.


So if i am understanding right, the esri basemaps are not stored in WKID 4326 and because our wms is WKID 4326 it will not work?

I am new to this...sorry for asking so many questions.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mellissa,

   Esri still does have a few cached basemaps that are in 4326. Here is the streetmap one:

http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer
0 Kudos