<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WMS-layer problem in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452323#M5519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh you are right.&lt;/P&gt;&lt;P&gt;Looks like there is a mismatch between 2 equivalent SR (3067 and 102139).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you set the map SR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 14:55:11 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2015-02-16T14:55:11Z</dc:date>
    <item>
      <title>WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452319#M5515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show a layer from a WMS-service on my map but somehow it draws nothing. The WmsLayer.ServiceInfo is loaded correctly after initialization. I try to add it to my map with the following code where "vaki2011_1km" is the layer name from service ( &lt;A href="http://geo.stat.fi/geoserver/vaestoruutu/wms?service=wms&amp;amp;%20version=1.3.0&amp;amp;request=GetCapabilities" title="http://geo.stat.fi/geoserver/vaestoruutu/wms?service=wms&amp;amp;%20version=1.3.0&amp;amp;request=GetCapabilities" rel="nofollow noopener noreferrer" target="_blank"&gt;http://geo.stat.fi/geoserver/vaestoruutu/wms?service=wms&amp;amp;%20version=1.3.0&amp;amp;request=GetCapabilities )&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var wmslayer = new WmsLayer(new Uri("&lt;A href="http://geo.stat.fi/geoserver/vaestoruutu/wms" title="http://geo.stat.fi/geoserver/vaestoruutu/wms" rel="nofollow noopener noreferrer" target="_blank"&gt;http://geo.stat.fi/geoserver/vaestoruutu/wms&lt;/A&gt;?"))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName = "Väestöruutuaineisto",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsVisible = true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wmslayer.Layers = new[] {"vaki2011_1km"};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wmslayer.ImageFormat = "image/png";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await wmslayer.InitializeAsync();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Layers.Insert(0, wmslayer);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My map spatial reference is EPSG:3067 and the WMS Service supports it. What can possibly go wrong here? I tried to publish a simple own WMS service on ArcGIS server and added it to my map same way and it worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452319#M5515</guid>
      <dc:creator>TuukkaJärvinen</dc:creator>
      <dc:date>2021-12-11T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452320#M5516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a server issue when using the SR 3067 which is supposed to be supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the geographic SR 4326, the server returns the correct&lt;A href="http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1921&amp;amp;HEIGHT=1018&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:4326&amp;amp;BBOX=56.1421013,8.14807269744596,73.5492887,40.9960167007859"&gt; image&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;With SR 3067, it returns a blank &lt;A href="http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1921&amp;amp;HEIGHT=1018&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:3067&amp;amp;BBOX=56.1421013,8.14807269744596,73.5492887,40.9960167007859"&gt;imag&lt;/A&gt;e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround might be to use a map in geographic coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452320#M5516</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2015-02-13T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452321#M5517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The server returns correct image with SR 3067 if the bounding box is set correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1921&amp;amp;HEIGHT=1018&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:3067&amp;amp;BBOX=46167.837979319,6629395.36843484,762231.492641991,7810900.49878568"&gt;http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1921&amp;amp;HEIGHT=1018&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:3067&amp;amp;BBOX=46167.837979319,6629395.36843484,762231.492641991,7810900.49878568&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still wondering what causes it not to be drawn on the map after adding it as WmsLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 08:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452321#M5517</guid>
      <dc:creator>TuukkaJärvinen</dc:creator>
      <dc:date>2015-02-16T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452322#M5518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually noticed that the API calls WMS with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1185&amp;amp;HEIGHT=588&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:102139&amp;amp;BBOX=185176.859238558,6948504.12867242,773049.442264974,7240207.99265514"&gt;http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1185&amp;amp;HEIGHT=588&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:102139&amp;amp;BBOX=185176.859238558,6948504.12867242,773049.442264974,7240207.99265514&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which returns this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; font-family: monospace; font-size: 13px;"&gt;Error occurred decoding the espg code urn:x-ogc:def:crs:EPSG:102139 No code "EPSG:102139" from authority "European Petroleum Survey Group" found for object of type "IdentifiedObject"."&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it would send the request with EPSG:3067 which is the spatial reference of my map, the request would work like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1185&amp;amp;HEIGHT=588&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:3067&amp;amp;BBOX=185176.859238558,6948504.12867242,773049.442264974,7240207.99265514"&gt;http://geoserv.stat.fi:8080/geoserver/vaestoruutu/ows?SERVICE=WMS&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1185&amp;amp;HEIGHT=588&amp;amp;FORMAT=image%2Fpng&amp;amp;LAYERS=vaki2011_1km&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:3067&amp;amp;BBOX=185176.859238558,6948504.12867242,773049.442264974,7240207.99265514&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to make it use correct SR in the request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 11:22:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452322#M5518</guid>
      <dc:creator>TuukkaJärvinen</dc:creator>
      <dc:date>2015-02-16T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452323#M5519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh you are right.&lt;/P&gt;&lt;P&gt;Looks like there is a mismatch between 2 equivalent SR (3067 and 102139).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you set the map SR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452323#M5519</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2015-02-16T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452324#M5520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After further testing I actually noticed that the request SR is not dependent on Map.SpatialReference but MapView.SpatialReference. The MapView gets SpatialReference from the first layer that gets added, right? For some reason, if I add FeatureLayer from ArcGIS server that has spatial reference WKID 3067 the MapView.SpatialReference is set to WKID 3067. But when I add ArcGISDynamicMapService layer with the same WKID 3067, the MapView.SpatialReference is set to WKID 102139. Both layers have their spatial references marked as "&lt;STRONG style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.3999996185303px;"&gt;Spatial Reference: &lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.3999996185303px;"&gt;102139&amp;nbsp; (3067)" &lt;/SPAN&gt; on ArcGIS Server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best way to make sure that the MapView.SpatialReference is always 3067?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 10:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452324#M5520</guid>
      <dc:creator>TuukkaJärvinen</dc:creator>
      <dc:date>2015-02-17T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: WMS-layer problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452325#M5521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tuukka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try to force the SR and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14241688750205549" jivemacro_uid="_14241688750205549" modifiedtitle="true"&gt;&lt;P&gt;MyMapView.Map.SpatialReference = &lt;SPAN style="color: #2b91af;"&gt;SpatialReference&lt;/SPAN&gt;.Create(3067);&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 10:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wms-layer-problem/m-p/452325#M5521</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-02-17T10:28:35Z</dc:date>
    </item>
  </channel>
</rss>

