Select to view content in your preferred language

Adding a WMS layer

3593
11
05-09-2011 07:29 PM
MarkSmith1
Occasional Contributor
I saw that the new release of the viewer includes a new Layer tag that allows you to overwrite the WKID sent to a WMS server. Does this mean you can add a WMS layer to a viewer that is using a projection NOT supported by the WMS service?
I'm trying to add the NRCan Toporama service to my viewer (which is using wkid 102100) but nothing is showing up in when I examine the response from the server in Fiddler I get an unsupported SRS message. The Toporama service does not support Web Mercator (102100).
Maybe I don't understand but the change at 2.3.1 made it sound like I could force the wms to use the viewers wkid.
Here is the tag I'm using:

<layer label="NRCan" type="wms" visiblelayers="hypsography" url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" wkid="102100" skipgetcapabilities="true" version="1.1.1"/>
Tags (2)
0 Kudos
11 Replies
BillSpiking__GISP
Occasional Contributor
Hello,

I'm trying to add the USFWS Critical Habitat wms to my flexviewer 2.5 app and can't seem to get it to work.  I've tested adding the NRCan wms in the above threads and it works fine. Any help would be greatly appreciated!  Thank you.

<layer label="Critical Habitat" type="wms" visible="true"
                   url="http://criticalhabitat.fws.gov/arcgis/services/crithab/usfwsCriticalHabitat/MapServer/WMSServer?"
                   version="1.3.0"
                   skipgetcapabilities="true"
       wkid="900913"
                   visiblelayers="Critical Habitat - Linear Features"/>
0 Kudos
DasaPaddock
Esri Regular Contributor
Try:

<layer label="Critical Habitat" type="wms" visible="true"
url="http://criticalhabitat.fws.gov/arcgis/services/crithab/usfwsCriticalHabitat/MapServer/WMSServer"
skipgetcapabilities="true"
visiblelayers="1"/>

ArcGIS Server doesn't work with wkid="900913" and the layer names are the layer ids.

See the Capabilities at:
http://criticalhabitat.fws.gov/arcgis/services/crithab/usfwsCriticalHabitat/MapServer/WMSServer?requ...
0 Kudos