AnsweredAssumed Answered

WMS Layers Not Displaying in Runtime Without Name

Question asked by dbanta_ncs on Jun 15, 2017

How do I display the "root" layer in a WMS service using Runtime for .NET sdk?  This layer does not have a name property in the xml capabilities so I'm not sure how to specify it for the Layers property on the WmsLayer.  I can't seem to get any of the layers for this service to display.

 

I have tested with other services and they do seem to work when I specify the Layer's Name property, when every Layer in the WMS has a Name.

 

https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Observations/NOHRSC_Snow_Analysis/MapServer/WmsServer?service=wms&request=GetCapabilities

 

This is an example xml:

<Layer>
<Title>
<![CDATA[ Layers ]]>
</Title>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:0</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-130.516667</westBoundLongitude>
<eastBoundLongitude>-62.252731</eastBoundLongitude>
<southBoundLatitude>24.100000</southBoundLatitude>
<northBoundLatitude>58.240301</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-130.516667" miny="24.100000" maxx="-62.252731" maxy="58.240301"/>
<BoundingBox CRS="EPSG:4326" minx="24.100000" miny="-130.516667" maxx="58.240301" maxy="-62.252731"/>
<BoundingBox CRS="EPSG:0" minx="-130.516667" miny="24.100000" maxx="-62.252731" maxy="58.240301"/>
<Layer queryable="1">
<Title>
<![CDATA[ Snow Water Equivalent ]]>
</Title>
<Abstract>
<![CDATA[ ]]>
</Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:0</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-130.516666</westBoundLongitude>
<eastBoundLongitude>-62.252731</eastBoundLongitude>
<southBoundLatitude>24.100000</southBoundLatitude>
<northBoundLatitude>58.240301</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-130.516666" miny="24.100000" maxx="-62.252731" maxy="58.240301"/>
<BoundingBox CRS="EPSG:4326" minx="24.100000" miny="-130.516666" maxx="58.240301" maxy="-62.252731"/>
<BoundingBox CRS="EPSG:0" minx="-130.516666" miny="24.100000" maxx="-62.252731" maxy="58.240301"/>
<Layer queryable="1">
<Name>1</Name>
<Title>
<![CDATA[ Inches ]]>
</Title>
<Abstract>
<![CDATA[ nws_nohrsc_snowWaterMos ]]>
</Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:0</CRS>
<EX_GeographicBoundingBox>

Outcomes