Hi,Another thing I noticed, is that if you check the "Use layer names from the map document" for the WMS capabilities of the service and then try using the layer names instead of using the layer numbers, you get nothing back. Why can't we use the layer names?
case"wms": var wmsLayer = newWmsLayer(); wmsLayer.Url = "http://s5-bsc-ims2.nrn.nrcan.gc.ca/ArcGIS/services/testwms1/MapServer/WMSServer"; wmsLayer.ID = "Test WMS Service"; wmsLayer.Layers = new string[] { "0" }; wmsLayer.Visible = true; wmsLayer.SkipGetCapabilities = true; wmsLayer.SupportedSpatialReferenceIDs= new int[] { 102002 }; wmsLayer.Version="1.3.0"; layers.Add(wmsLayer); break;
GET /ArcGIS/services/testwms1/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetMap&WIDTH=1071&HEIGHT=746&FORMAT=image/png&LAYERS=0&STYLES=&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&VERSION=1.3.0&CRS=EPSG:0&BBOX=-3600246.41388271,-936638.5,4433553.57338271,4659267 HTTP/1.1
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"> <ServiceException code="InvalidCRS"> Parameter 'crs' contains unacceptable value. </ServiceException> </ServiceExceptionReport>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.