<?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: WKID problem with WMS service in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670613#M3441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a map in which i have several layers of ArcGIS webservices of different origins. One of them is a WMS service which supports the spatial reference that i am using in my map, but when I look at the spatial reference of this layer it returns the WKID of the first EPSG tag in the WMS file.&amp;nbsp; How can I force it to use my WKID instead ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just ran into the same problem. Did you find a good solution for this, or did you end up extending the WmsLayer class in the toolkit?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 07:23:46 GMT</pubDate>
    <dc:creator>BjørnarSundsbø</dc:creator>
    <dc:date>2014-02-18T07:23:46Z</dc:date>
    <item>
      <title>WKID problem with WMS service</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670612#M3440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a map in which i have several layers of ArcGIS webservices of different origins. One of them is a WMS service which supports the spatial reference that i am using in my map, but when I look at the spatial reference of this layer it returns the WKID of the first EPSG tag in the WMS file.&amp;nbsp; How can I force it to use my WKID instead ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 12:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670612#M3440</guid>
      <dc:creator>martindevos</dc:creator>
      <dc:date>2012-08-03T12:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: WKID problem with WMS service</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670613#M3441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a map in which i have several layers of ArcGIS webservices of different origins. One of them is a WMS service which supports the spatial reference that i am using in my map, but when I look at the spatial reference of this layer it returns the WKID of the first EPSG tag in the WMS file.&amp;nbsp; How can I force it to use my WKID instead ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just ran into the same problem. Did you find a good solution for this, or did you end up extending the WmsLayer class in the toolkit?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 07:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670613#M3441</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-02-18T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: WKID problem with WMS service</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670614#M3442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That seems the normal behavior. WmsLayer has 2 properties concerning SRs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - SpatialReference = Default Spatial Reference, i.e the first SR as you noticed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - SupportedSpatialReferenceIDs = enumeration of&amp;nbsp; supported spatial reference IDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to display the WMS layer whatever the map SR in the SupportedSpatialReferenceIDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example the following WebMercator map displays correctly the WMS layer despite its default SR is Geographic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:Map UseAcceleratedDisplay="True" WrapAround="True" Extent="-15000000,2000000,-7000000,8000000"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:WmsLayer ID="OtherWMSLayer"&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; Url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi"&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;&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; SkipGetCapabilities="False"&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; Layers="nexrad-n0r" 
&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; Version="1.1.1" 
&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; Opacity="0.7" /&amp;gt;
&amp;lt;/esri:Map&amp;gt;
 &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you notice a particular issue whith that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:18:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670614#M3442</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: WKID problem with WMS service</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670615#M3443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't experience any issues with that sample. I just tried creating my own sample, but the services providing the maps I am looking for are not publicly available. The WMS I'm accessing is &lt;/SPAN&gt;&lt;A href="http://wms.norgeibilder.no/services/wms/wms.aspx?request=getcapabilities"&gt;http://wms.norgeibilder.no/services/wms/wms.aspx?request=getcapabilities&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My base map is in spatial reference epsg 32633 (custom layer exported from MXD), and the WMS defaults to epsg 25832. They are both displayed, but there is an offset between them. The image of scandinavia from the WMS is then rendered somewhere in the Baltics, on top of the base map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to "fix" this issue by deriving from WMS layer to set the spatial reference system in the constructor. That way I lose the ability to verify that the srs is actually supported. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the spatial reference is null,the WMS will assign the first in the supported srs. As the setter for Spatial reference is not publicly accessible, I am not able to assign it from the outside. There may be some other factors in play here, where I assign the spatial reference system to the map based on my basemap, which may have an impact on the offset I experience. As a user of the WmsLayer class, it appears there is no way of actually using the SupportedSpatialReferenceIDs. I can just see what they are, without a way of affecting what is picked up. A PreferredSpatialReference property would have been nice. That way, the WMS layer can assign the SpatialReference from that, if it is in the SupportedSpatialReferenceIDs, instead of just picking the first available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 07:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/wkid-problem-with-wms-service/m-p/670615#M3443</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-02-21T07:10:39Z</dc:date>
    </item>
  </channel>
</rss>

